Enclose the string HTML tag
$ npm install html-enclose
var enclose = require('html-enclose'); var str = "sample string"; enclose(str, 'p'); /* * <p>sample string</p> */
The MIT License (MIT)
Copyright (c) 2014 Masaaki Morishita