dtext tweaks

This commit is contained in:
albert
2011-10-15 22:46:26 -04:00
parent 91f71201fa
commit 81dc20c58f
2 changed files with 13 additions and 1 deletions

View File

@@ -199,7 +199,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 big b i font),
:elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small b i),
:attributes => {
"a" => %w(href title style),
"span" => %w(class style),