diff --git a/app/logical/d_text.rb b/app/logical/d_text.rb index c676ab8a1..92af35faf 100644 --- a/app/logical/d_text.rb +++ b/app/logical/d_text.rb @@ -181,7 +181,7 @@ class DText def self.sanitize(text) Sanitize.clean( text, - :elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small b i), + :elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small b i font), :attributes => { "a" => %w(href title style), "span" => %w(class style), diff --git a/app/views/notes/_note.html.erb b/app/views/notes/_note.html.erb index 81e9bcd3c..b152dc650 100644 --- a/app/views/notes/_note.html.erb +++ b/app/views/notes/_note.html.erb @@ -1,3 +1 @@ -
- <%= raw DText.sanitize(note.body) %> -
\ No newline at end of file +
<%= raw DText.sanitize(note.body) %>
\ No newline at end of file