Remove HTML comments from a string
Supports ES6, commonjs and browser
npm i html-uncomment
https://cdn.jsdelivr.net/npm/html-uncomment@1.0.0/html-uncomment.js
import htmlUncomment from 'html-uncomment';
// commonjs => "const htmlUncomment = require('html-uncomment')"
console.log(htmlUncomment(`
<p>Hello</p>
<!-- hru -->
<span>world</span>
`))