Takes a URL and returns a HTML representation - includes youtube, vimeo, images, mp3...
npm install url2htmlurl2html
========
Converts a url in to html. Simple.
Supports
- Youtube Why?
- Vimeo
- Mp3s (using strangecube.com's embed player)
- Defaults to a simple
Sometimes you just want to convert a URL to whatever it is - without doing a bunch of processing.Installation with NPM
```
npm install url2html --save
``
const url2html = require('url2html');
let embedCode = url2html('http://www.youtube.com/watch?v=SKm6JIN0078').get();
``
bower install url2html
``
```
let embedCode = url2html('http://www.youtube.com/watch?v=SKm6JIN0078').get();
Returns a a string of html with links converted to html versions.
text = "Free Your Mind. http://www.youtube.com/watch?v=SKm6JIN0078 \n\n ";
text=text+"Meet Momo. https://en.wikipedia.org/wiki/Momo_the_Monster http://www.stateofhorror.com/momo2.jpg";
content = url2html().parse(text);
document.write(content);
Returns html version
document.write(url2html('http://www.youtube.com/watch?v=SKm6JIN0078').get());
Free Your Mind. http://www.youtube.com/watch?v=SKm6JIN0078 \n\n Meet Momo. https://en.wikipedia.org/wiki/Momo_the_Monster http://www.stateofhorror.com/momo2.jpg