1.0.0 • Published 5 months ago

rmhtmltags v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

rmhtmltags

npm mit install size

Returns a string without html tags. A clone of the now-deprecated strip-html-tags package.

import rmhtmltags from './rmhtmltags.js'

rmhtmltags('<a href="">lorem <strong>ipsum</strong></a>')
// lorem ipsum

Why did you clone strip-html-tags?

strip-html-tags was the only single-file, zero-dependencies html-stripping package reliable for my own use-cases. It required no compiler or build tools and thus has zero maintenance risk and is easy for anyone to clone and maintain.

1.0.0

5 months ago