better formatting for notes

This commit is contained in:
albert
2011-10-10 18:14:00 -04:00
parent 4bc743a680
commit 13e8574c64
2 changed files with 15 additions and 9 deletions

View File

@@ -199,12 +199,13 @@ class DText
def self.sanitize(text)
Sanitize.clean(
text,
:elements => %w(h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong),
:elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small big b i font),
:attributes => {
"a" => %w(href title),
"span" => %w(class),
"div" => %w(class),
"p" => %w(class)
"a" => %w(href title style),
"span" => %w(class style),
"div" => %w(class style),
"p" => %w(class style),
"font" => %w(color size style)
},
:protocols => {
"a" => {