Skip to content
Snippets Groups Projects
Commit bd0022a3 authored by Gospodin Bodurov's avatar Gospodin Bodurov
Browse files

Merge branch '553-filter-interactions' into 'master'

Ability to search and filter Inbox(Emails and Documents)

See merge request !53
parents 6a51cc54 005a79c5
No related branches found
No related tags found
1 merge request!53Ability to search and filter Inbox(Emails and Documents)
......@@ -120,14 +120,14 @@ export const extractHtmlBodyFromString = string => {
const extractBodyRegex = /<body.*?>([\s\S]+)<\/body>/gm;
const bodyMatch = extractBodyRegex.exec(string);
let body;
let body = string;
if (bodyMatch && bodyMatch[1]) {
body = bodyMatch[1]
.replace(/>\s+</gm, "><")
.replace(/<!--[\s\S]*?-->/gm, "")
.trim();
body = bodyMatch[1];
}
return body;
return body
.replace(/>\s+</gm, "><")
.replace(/<!--[\s\S]*?-->/gm, "")
.trim();
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment