htmlremove
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

htmlremove

Removed HTML tags from html string to return plain text

Setup

npm install htmlremove
yarn install htmlremove

Usage

var htmlremove = require('htmlremove');


let html = " <div> May the force be with <a href="#">you</a>. I love <strong>Batman</strong> ";

html = htmlremove(html);

//output 'May the force be with you. I love Batman'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.6
    2
    • latest

Version History

Package Sidebar

Install

npm i htmlremove

Weekly Downloads

2

Version

2.0.6

License

MIT

Unpacked Size

1.82 kB

Total Files

3

Last publish

Collaborators

  • damunga