This commit is contained in:
Toks
2013-05-08 08:57:50 -04:00
parent 5ba524b29f
commit 48d95cfae3
3 changed files with 23 additions and 3 deletions

View File

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