Skip to content

Commit

Permalink
Merge pull request #79 from gaelian/raw-html-fix
Browse files Browse the repository at this point in the history
Fix addressing the issue where HTML is too eagerly escaped with relation to comments, pages and posts.
  • Loading branch information
xaviershay committed May 22, 2013
2 parents 739b2e9 + d94483b commit bd6c43c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/comments/_comment.html.erb
@@ -1,4 +1,4 @@
<cite><%= author_link(comment) %></cite> says:
<br/>
<small class="commentmetadata"><a href="#comment-<%= comment.id %>" title=""><%= format_comment_date(comment.created_at) %></a></small>
<p><%= comment.body_html %></p>
<p><%= raw(comment.body_html) %></p>
2 changes: 1 addition & 1 deletion app/views/pages/_page.html.erb
@@ -1 +1 @@
<%= page.body_html %>
<%= raw(page.body_html) %>
2 changes: 1 addition & 1 deletion app/views/posts/_post.html.erb
@@ -1,7 +1,7 @@
<h2><%= link_to_post(post) %></h2>

<div class="entry-body">
<%= post.body_html %>
<%= raw(post.body_html) %>
</div>
<div class="meta">
<ul>
Expand Down

0 comments on commit bd6c43c

Please sign in to comment.