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

@@ -17,6 +17,18 @@ div#note-container {
font-size: 0.8em; font-size: 0.8em;
color: gray; color: gray;
} }
b {
font-weight: bold;
}
i {
font-style: italic;
}
small {
font-size: 0.8em;
}
} }
div.note-box { div.note-box {

View File

@@ -199,7 +199,7 @@ class DText
def self.sanitize(text) def self.sanitize(text)
Sanitize.clean( Sanitize.clean(
text, 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 => { :attributes => {
"a" => %w(href title style), "a" => %w(href title style),
"span" => %w(class style), "span" => %w(class style),