mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +00:00
MailEditor: fix text conversion with HTML entities
This commit is contained in:
1 parent
619cb2c0ec
commit
66bfbeaac1
1 file changed
+9
-1
@@ -417,7 +417,15 @@
|
||||
{
|
||||
if (!ignoreContent)
|
||||
{
|
||||
[result appendString: [[NSString stringWithCharacters: characters length: length] stringByEscapingHTMLString]];
|
||||
// Append a text node
|
||||
if (ignoreContentTags)
|
||||
// We are converting a HTML message to plain text (htmlToTextContentHandler):
|
||||
// include the HTML tags in the text
|
||||
[result appendString: [NSString stringWithCharacters: characters length: length]];
|
||||
else
|
||||
// We are sanitizing an HTML message (sanitizerContentHandler):
|
||||
// escape the HTML entitites so they are visible
|
||||
[result appendString: [[NSString stringWithCharacters: characters length: length] stringByEscapingHTMLString]];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user