string-purge-html
v1.0.2
Published
purge all html markup from es6 template literal tag
Downloads
20
Readme
string-purge-html
purge all html markup from es6 template literal tag
Install
npm i string-purge-htmlimport purgeHtml from 'string-purge-html';
const item = "teapot";
const str = purgeHtml`<h1>I'm a <strong>${item}</strong></h1>`;
console.log(str);Should print:
I'm a teapot