/removetags

removes html tags in a string

Primary LanguageJavaScript

Escape Square Brackets

Escapes square brackets in a string, useful for queries and other such things.

Install

$ npm install removetags

Usage

removetags(string)

In JS

var removetags = require('removetags');
input = "hello <em>world</em>, how are you?";
input = removetags(input);

Output

hello world, how are you?