Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function textExtractFromHtml(html) {
return decode(striptags(html));
}
.replace(/\$title\b/g, () => decode(post.data.title))
.replace(/\$url\b/g, post.data.url)