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

strip

parent 72b35fb5
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,9 @@ module Admin::ApplicationHelper ...@@ -64,7 +64,9 @@ module Admin::ApplicationHelper
text = sanitize html.to_s, text = sanitize html.to_s,
tags: %w(table a figure img figcaption i em b strong h2 h3 h4 h5 h6 blockquote), 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) attributes: %w(href alt title target rel src srcset width height)
CGI.escapeHTML text text = CGI.escapeHTML text
text = text.strip
text
end end
private 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