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'

Package Sidebar

Install

npm i htmlremove

Weekly Downloads

3

Version

2.0.6

License

MIT

Unpacked Size

1.82 kB

Total Files

3

Last publish

Collaborators

  • damunga