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