Always use ActionController::Base.helpers to sanitize Markdown

Co-authored-by: Sebastian Serth <Sebastian.Serth@hpi.de>
This commit is contained in:
Ralf Teusner
2021-08-05 22:58:03 +02:00
parent a170f7bfc2
commit 47888f1dbd

View File

@ -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)