1.0.1 โ€ข Published 1 year ago

@igor.dvlpr/strip-html v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.