]> git.openstreetmap.org Git - rails.git/commitdiff
Replace htmlize call by rich text to_html call
authorTom Hughes <tom@compton.nu>
Mon, 15 Oct 2012 21:36:52 +0000 (22:36 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 15 Oct 2012 21:36:52 +0000 (22:36 +0100)
app/views/notes/mine.html.erb

index 50c15cd9d3f1678cc150b8e1702fcb032d2bc631..c58548b47c385aa2cc32bf8a5f26edce345877e0 100644 (file)
@@ -27,7 +27,7 @@
     <% else %> 
       <td><%= link_to h(note.author_name), :controller => "user", :action => "view", :display_name => note.author_name %></td>
     <% end %>
     <% else %> 
       <td><%= link_to h(note.author_name), :controller => "user", :action => "view", :display_name => note.author_name %></td>
     <% end %>
-    <td> <%= htmlize note.comments.first.body  %> </td>        
+    <td> <%= note.comments.first.body.to_html  %> </td>        
     <td><%= l note.created_at %></td>
     <td><%= l note.updated_at %></td>
   </tr>
     <td><%= l note.created_at %></td>
     <td><%= l note.updated_at %></td>
   </tr>