diff --git a/src/containers/blogs/Blogs.js b/src/containers/blogs/Blogs.js index fb032ae8cd..667a950f0b 100644 --- a/src/containers/blogs/Blogs.js +++ b/src/containers/blogs/Blogs.js @@ -14,9 +14,10 @@ export default function Blogs() { function extractTextContent(html) { return typeof html === "string" ? html - .split("p>") - .filter(el => !el.includes(">")) - .map(el => el.replace("", ".").replace("<", "")) + .split(/<\/p>/i) + .map(part => part.split(/
]*>/i).pop()) + .filter(el => el.trim().length > 0) + .map(el => el.replace(/<\/?[^>]+(>|$)/g, "").trim()) .join(" ") : NaN; }