@plexis/without-html

0.0.22 • Public • Published

@plexis/withoutHTML

Removes HTML tags from the input text.

Installation npm i @plexis/without-html

Usage

import withoutHTML from '@plexis/without-html';

withoutHTML('Hello world'); // => 'Hello world'
withoutHTML('<p>Hello</p> world'); // => ' world'
withoutHTML('<p Hello world'); // => '<p Hello world'
withoutHTML('<p id="">Hello world</p>'); // => ''
withoutHTML('<p id="" Hello world</p> <b></b> from the underground'); // => ' from the underground'

Aliases

import withoutHTML from '@plexis/without-html';
import {withoutHTML, removeHTML} from 'plexis';

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @plexis/without-html

      Weekly Downloads

      0

      Version

      0.0.22

      License

      MIT

      Unpacked Size

      4.26 kB

      Total Files

      6

      Last publish

      Collaborators

      • vorillaz