mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: Remove html entities from text emails
This commit is contained in:
parent
55fc54fe69
commit
b1271ed44b
2 changed files with 31 additions and 1 deletions
|
@ -11,6 +11,7 @@ module Email
|
|||
def text
|
||||
return @text if @text
|
||||
@text = (@message.text_part ? @message.text_part : @message).body.to_s.force_encoding('UTF-8')
|
||||
@text = CGI.unescapeHTML(@text)
|
||||
end
|
||||
|
||||
def html
|
||||
|
@ -28,4 +29,4 @@ module Email
|
|||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue