notes: move sanitization from d_text.rb to note_sanitizer.rb.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user