Skip to content
Snippets Groups Projects
Commit dd977698 authored by pabois's avatar pabois
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents f5447d24 f2f0f33e
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