strip-html
🕵🏼♂️ Usage
Install it by executing:
npm i "@igor.dvlpr/strip-html"
🤹🏼♂️ API
function stripHtml(html: string): string
Strips HTML tags completely.
html: string
- the HTML string to process.
returns
- the processed string.
function stripHtmlCode(html: string): string
Strips only the HTML code while keeping the text content.
html: string
- the HTML string to process.
returns
- the processed string.