fixes to note fonts
This commit is contained in:
@@ -181,7 +181,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 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 => {
|
:attributes => {
|
||||||
"a" => %w(href title style),
|
"a" => %w(href title style),
|
||||||
"span" => %w(class 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 %>">
|
<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>
|
||||||
<%= raw DText.sanitize(note.body) %>
|
|
||||||
</article>
|
|
||||||
Reference in New Issue
Block a user