1.0.0 • Published 1 year ago

html-uncomment v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

html-uncomment.js

Remove HTML comments from a string

Supports ES6, commonjs and browser

⚙️ Installation

npm i html-uncomment

https://cdn.jsdelivr.net/npm/html-uncomment@1.0.0/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>
`))

Support me on Patreon - Check out my socials