Commit ea29ebc4aeaac151bbac95c9398998ce3f2a5d0f
1 parent
5a45530a
Exists in
ratings_minor_fixes
and in
4 other branches
fix html escape of comment title
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/comment/_comment.html.erb
| ... | ... | @@ -38,7 +38,7 @@ |
| 38 | 38 | <div class="comment-created-at"> |
| 39 | 39 | <%= show_time(comment.created_at) %> |
| 40 | 40 | </div> |
| 41 | - <h4><%= comment.title.blank? && ' ' || comment.title %></h4> | |
| 41 | + <h4><%= comment.title.blank? && ' '.html_safe || comment.title %></h4> | |
| 42 | 42 | <div class="comment-text"> |
| 43 | 43 | <p/> |
| 44 | 44 | <%= txt2html comment.body %> | ... | ... |