string-purge-html

1.0.2 • Public • Published

string-purge-html

purge all html markup from es6 template literal tag

Install

npm i string-purge-html
import 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

Readme

Keywords

none

Package Sidebar

Install

npm i string-purge-html

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

218 kB

Total Files

4

Last publish

Collaborators

  • aviacarmi1