JSPM

@igor.dvlpr/strip-html

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 51
  • Score
    100M100P100Q63164F
  • License MIT

๐Ÿฅž Removes HTML code from the given string. Can even extract text-only from the given an HTML string. โœจ

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. โœจ


๐Ÿ’– 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.