1.0.1 โข Published 1 year ago
@igor.dvlpr/strip-html v1.0.1
strip-html
๐ฅ Removes HTML code from the given string. Can even extract text-only from the given an HTML string. โจ
๐ต๐ผโโ๏ธ 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.