Skip to content
jQuery plugin for transforming URLs to appropriate resource (image, link, YouTube, Vimeo video,...)
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


jQuery port of Rails' extension auto_html

Example usage

Given this comment div:

<div class="comment">

And you will go to Mykonos
With a vision of a gentle coast
And a sun to maybe dissipate
Shadows of the mess you made

and this script:

<script type="text/javascript">
    .youtube({width:500, height:400})

The comment div will be transformed to this:

<p><img src="" alt="" width="500px"></p><p>And you will go to Mykonos<br>With a vision of a gentle coast<br>And a sun to maybe dissipate<br>Shadows of the mess you made</p><p><iframe class="youtube-player" type="text/html" width="500" height="400" src="" frameborder="0"></iframe>


Author: Dejan Simic

Something went wrong with that request. Please try again.