1.0.4 • Published 9 years ago

parsemejs v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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
  }
}