Skip to content

Commit

Permalink
Move sanitize to last call
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerei committed Jan 17, 2016
1 parent 5c46eb6 commit 2659ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module ApplicationHelper

def sanitize_markdown(body)
# TODO: This method slow, 3.5ms per call in topic body
sanitize sanitize(body), tags: ALLOW_TAGS, attributes: ALLOW_ATTRIBUTES
sanitize sanitize(body, tags: ALLOW_TAGS, attributes: ALLOW_ATTRIBUTES)
end

def notice_message
Expand Down

0 comments on commit 2659ffc

Please sign in to comment.