Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

tagterm

0.0.3 • Public • Published

tagTerm

Encapsulates a term within a string with html tags of your choosing.

Install

$ npm install tagterm

Usage

tagterm(input, term, tag)

In JS

var tagterm = require('tagterm');
input = "hello world, how are you?";
input = tagterm(input, "world", "em");
 

Output

hello <em>world</em>, how are you?

As HTML

hello world, how are you?

Install

npm i tagterm

DownloadsWeekly Downloads

1

Version

0.0.3

License

WTFPL

Last publish

Collaborators

  • avatar