trim-html-tag
trim html tag from input
Install
npm install --save trim-html-tag
Usage
; ; // trimP; // trimH1; // trimH1; // stringified <em>stay here</em> ; // undefined ¯\_(ツ)_/¯; // some
API
trimTag(input)
input
Required
Type: String
One stringified HTML node, from which you want to trim the tag (e.g. <p>inside</p>
or <h1>also inside</h1>
).
License
MIT © Vladimir Starkov