Package Exports
- @igor.dvlpr/strip-html
- @igor.dvlpr/strip-html/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@igor.dvlpr/strip-html) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.