FIX: invalid html in notification emails when template has been customized

This commit is contained in:
Neil Lalonde
2017-05-10 14:01:26 -04:00
parent 41fb76cc66
commit 5be7a2dad4
3 changed files with 2 additions and 9 deletions

View File

@@ -186,10 +186,7 @@ module Email
def to_html
strip_classes_and_ids
replace_relative_urls
@fragment.to_html.tap do |result|
result.gsub!(/\[email-indent\]/, "<div style='margin-left: 15px'>")
result.gsub!(/\[\/email-indent\]/, "</div>")
end
@fragment.to_html
end
def strip_avatars_and_emojis