Always use ActionController::Base.helpers to sanitize Markdown
Co-authored-by: Sebastian Serth <Sebastian.Serth@hpi.de>
This commit is contained in:
@ -42,7 +42,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def render_markdown(markdown)
|
||||
sanitize Kramdown::Document.new(markdown).to_html
|
||||
ActionController::Base.helpers.sanitize Kramdown::Document.new(markdown).to_html
|
||||
end
|
||||
|
||||
def row(options = {}, &block)
|
||||
|
Reference in New Issue
Block a user