@dndxdnd/strip-html
v0.0.1
Published
A simple tool to remove HTML tags from a string / HTML file.
Downloads
77
Readme
strip-html
A simple tool to remove HTML tags from a string / HTML file. Use rehype-retext under the hood.
Usage
require Node.js >= 20
CLI
# basic
strip-html <file>
# specify output
strip-html <file> -o <output-file>
Node.js
import { stripHtml } from '@dndxdnd/strip-html'
const striped = await stripHtml('<p>Hello, world!</p>')
console.log(striped) // 'Hello, world!'