notes: move sanitization from d_text.rb to note_sanitizer.rb.

This commit is contained in:
evazion
2017-06-15 20:30:19 -05:00
parent 56b1651cd4
commit 990f173b3d
4 changed files with 27 additions and 26 deletions

View File

@@ -1 +1 @@
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>" data-body="<%= note.body %>"><%= 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 %>" data-body="<%= note.body %>"><%= raw NoteSanitizer.sanitize(note.body) %></article>