Skip to content
Snippets Groups Projects
Unverified Commit af388136 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Merge pull request #560 from noesya/strip_static_exports_texts

modifiy helpers to ensure tests are stripped in static exports
parents 618027aa 719661fc
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ module Admin::ApplicationHelper
end
def prepare_html_for_static(html, university)
text = html.to_s.dup
text = html.to_s.strip.dup
text = sanitize text
text.gsub! "\r", ''
text.gsub! "\n", ' '
......@@ -87,7 +87,7 @@ module Admin::ApplicationHelper
end
def prepare_text_for_static(text, depth = 1)
text = strip_tags text.to_s.dup
text = strip_tags text.to_s.strip.dup
text = indent text, depth
CGI.unescapeHTML text
end
......
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