fixes to note fonts
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>">
|
||||
<%= raw DText.sanitize(note.body) %>
|
||||
</article>
|
||||
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>"><%= raw DText.sanitize(note.body) %></article>
|
||||
Reference in New Issue
Block a user