fixes #1504
This commit is contained in:
12
app/controllers/note_previews_controller.rb
Normal file
12
app/controllers/note_previews_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user