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

modifiy helpers to ensure tests are stripped in static exports

parent 6cbfa52b
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