• Version 3.2.0
  • Published
  • 17.9 kB
  • No dependencies
  • MIT license


npm i striptags
yarn add striptags
pnpm add striptags


PHP strip_tags in Node.js



function init_streaming_mode

init_streaming_mode: (
allowedTags?: string | string[],
tagReplacement?: string
) => (html: string) => string;

    function striptags

    striptags: typeof striptags;
    • Creates an array of elements split into groups the length of size. If collection can’t be split evenly, the final chunk will be the remaining elements.

      Parameter html

      The text to process.

      Parameter allowedTags

      Tags which aren't removed

      Parameter tagReplacement

      Removed tags are replaced with this Returns the input string, sans any html tags that weren't allowed

    Package Files (1)

    Dependencies (0)

    No dependencies.

    Dev Dependencies (2)

    Peer Dependencies (0)

    No peer dependencies.


    To add a badge like this badgeto your package's README, use the codes available below.

    You may also use to create a custom badge linking to

    • Markdown
    • HTML
      <a href=""><img src="" alt=""></a>