[fix #1014] strip html tags in annotations_privees

This commit is contained in:
Simon Lehericey 2017-12-11 12:40:12 +01:00
parent 6e97209b82
commit a05217b364
3 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,10 @@
module HtmlToStringHelper
def html_to_string(html)
string_with_tags = html
.gsub(/<br[ ]?[\/]?>/, "\n")
.gsub('</p>', "\n")
.gsub('<p>', '')
strip_tags(string_with_tags)
end
end