mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: invalid html in notification emails when template has been customized
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user