html-uncomment
v1.0.0
Published
Remove HTML comments from a string
Downloads
4
Maintainers
Readme
html-uncomment.js
Remove HTML comments from a string
Supports ES6, commonjs and browser
⚙️ Installation
npm i html-uncomment
https://cdn.jsdelivr.net/npm/[email protected]/html-uncomment.js
📖 Usage
import htmlUncomment from 'html-uncomment';
// commonjs => "const htmlUncomment = require('html-uncomment')"
console.log(htmlUncomment(`
<p>Hello</p>
<!-- hru -->
<span>world</span>
`))