striptags

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

Install

npm i striptags
yarn add striptags
pnpm add striptags

Overview

PHP strip_tags in Node.js

Index

Functions

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.

    Badge

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

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/striptags.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/striptags)
    • HTML
      <a href="https://www.jsdocs.io/package/striptags"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>