@igor.dvlpr/strip-html
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

strip-html

🥞 Removes HTML code from the given string. Can even extract text-only from the given an HTML string.


💖 Support further development

Donate to igorskyflyer



🕵🏼‍♂️ 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.

Package Sidebar

Install

npm i @igor.dvlpr/strip-html

Weekly Downloads

42

Version

1.0.1

License

MIT

Unpacked Size

4.54 kB

Total Files

5

Last publish

Collaborators

  • igor.dvlpr