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
Branches
Tags
1 merge request!53Ability to search and filter Inbox(Emails and Documents)
...@@ -120,14 +120,14 @@ export const extractHtmlBodyFromString = string => { ...@@ -120,14 +120,14 @@ export const extractHtmlBodyFromString = string => {
const extractBodyRegex = /<body.*?>([\s\S]+)<\/body>/gm; const extractBodyRegex = /<body.*?>([\s\S]+)<\/body>/gm;
const bodyMatch = extractBodyRegex.exec(string); const bodyMatch = extractBodyRegex.exec(string);
let body; let body = string;
if (bodyMatch && bodyMatch[1]) { if (bodyMatch && bodyMatch[1]) {
body = bodyMatch[1] body = bodyMatch[1];
.replace(/>\s+</gm, "><")
.replace(/<!--[\s\S]*?-->/gm, "")
.trim();
} }
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.
Please register or to comment