parsemejs

Parse plain text to HTML (example: text what you get from Youtube API); Parse paragraphs and links.

Usage no npm install needed!

<script type="module">
  import parsemejs from 'https://cdn.skypack.dev/parsemejs';
</script>

README

parseMeJS

Parse plain text to HTML (example: text what you get from Youtube API); Parse paragraphs and links.

Install

Without dependencies. Files sample.html and main.js for example.

Bower

bower install parsemejs --save

NPM

npm install parsemejs --save

Usage

Include to page

<script src="parseme.js"></script>

var result = parseMe.parse(txt, settings);

Settings

{
  links: {
    className: 'a-link',
    target: true
  }
}