Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/common/mdh-html-to-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ MdhHtmlToText.prototype._preprocess = function() {
// to remain intact.
this.excludeTagBlocks('blockquote', true);

// Trying to keep current formatting intact (see issue #676)
this.preprocessInfo.html = this.preprocessInfo.html.replace(
/<(\/)?(b|i|u|strike)>/ig,
'&lt;$1$2&gt;'
);

// Try to leave intact the line that Gmail adds that says:
// On such-a-date, such-a-person <email addy> wrote:
this.preprocessInfo.html = this.preprocessInfo.html.replace(
Expand Down