dtext tweaks
This commit is contained in:
@@ -17,6 +17,18 @@ div#note-container {
|
||||
font-size: 0.8em;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
b {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
i {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
|
||||
div.note-box {
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user