19 lines
943 B
Plaintext
19 lines
943 B
Plaintext
<div class="homepagePostIntro break_word upload_img maxh360 table_maxWidth " id="activity_description_<%= user_activity_id%>">
|
|
<div id="intro_content_<%= user_activity_id%>">
|
|
<%= content.to_s.html_safe %>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$("#intro_content_<%= user_activity_id%> p,#intro_content_<%= user_activity_id%> span,#intro_content_<%= user_activity_id%> em").each(function(){
|
|
var postContent = $(this).html();
|
|
postContent = postContent.replace(/ /g," ");
|
|
postContent= postContent.replace(/ {2}/g," ");
|
|
postContent=postContent.replace(/ /g," ");
|
|
postContent=postContent.replace(/ /g," ");
|
|
$(this).html(postContent);
|
|
});
|
|
autoUrl('intro_content_<%= user_activity_id%>');
|
|
description_show_hide(<%=user_activity_id %>);
|
|
});
|
|
</script> |