remove html tags from a string
npm install tagless
const tagless = require('tagless')
// or
const { removeAll, removeByTag } = require('tagless')
import tagless from 'tagless'
// or
import { removeAll, removeByTag } from 'tagless'
parse all tags from a string
parms: (string)
tagless.removeAll('<p>hello</p>') // hello
parse a specific tag from a string
parms: (string, tag)
tagless.removeByTag('<p>hello</p>', 'p') // hello
Pull requests and stars are always welcome. For bugs and feature requests, please open an issue or submit a pull request.
Mahmoud Ibrahiam