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

@@ -2,7 +2,7 @@ class NotePreviewsController < ApplicationController
respond_to :json
def show
@body = DText.sanitize(params[:body].to_s)
@body = NoteSanitizer.sanitize(params[:body].to_s)
respond_with(@body) do |format|
format.json do
render :json => {:body => @body}.to_json