Skip to content
Snippets Groups Projects
Commit 32d52330 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 60699020
No related branches found
No related tags found
No related merge requests found
......@@ -61,9 +61,10 @@ module Admin::ApplicationHelper
end
def prepare_for_github(html)
sanitize html.to_s,
tags: %w(table a figure img figcaption i em b strong h2 h3 h4 h5 h6 blockquote),
attributes: %w(href alt title target rel src srcset width height)
text = sanitize html.to_s,
tags: %w(table a figure img figcaption i em b strong h2 h3 h4 h5 h6 blockquote),
attributes: %w(href alt title target rel src srcset width height)
CGI.escapeHTML text
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment