wrap-with-html

Wrap strings with html.

Usage no npm install needed!

<script type="module">
  import wrapWithHtml from 'https://cdn.skypack.dev/wrap-with-html';
</script>

README

Wrap With HTML

Wrap strings with HTML

Install

$ npm install --save wrap-with-html

Usage

var wrapWithHTML = require('wrap-with-html');

wrapWithHTML({
  string: "Hello World",
  customId: "hello-word",
  tagName: "span",
  customClass: "underline"
})
//=> <span id='hello-world' class='underline'>Hello World</span>

Test

$ npm test