Skip to content

Commit 0a1eada

Browse files
author
Gal Falkon
committed
Fix #676: Trying to keep current formatting intact
1 parent 1df5aee commit 0a1eada

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/mdh-html-to-text.js

+6
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ MdhHtmlToText.prototype._preprocess = function() {
105105
// to remain intact.
106106
this.excludeTagBlocks('blockquote', true);
107107

108+
// Trying to keep current formatting intact (see issue #676)
109+
this.preprocessInfo.html = this.preprocessInfo.html.replace(
110+
/<(\/)?(b|i|u|strike)>/ig,
111+
'&lt;$1$2&gt;'
112+
);
113+
108114
// Try to leave intact the line that Gmail adds that says:
109115
// On such-a-date, such-a-person <email addy> wrote:
110116
this.preprocessInfo.html = this.preprocessInfo.html.replace(

0 commit comments

Comments
 (0)