package
Remove HTML comments from a string.
npm install strip-html-commentsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Remove HTML comments from a string. This is intended to be a simple utility for the most trivial of comment stripping.
npm install --save strip-html-commentsvar stripHtmlComments = require('strip-html-comments')
stripHtmlComments('<span>foo<!--bar--></span>') // => '<span>foo</span>It will remove comments in <textarea>s:
<textarea><!-- comment in a textarea --></textarea>MIT
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Crafted with <3 by John Otander (@4lpine).
This package was initially generated with yeoman and the p generator.