jQuery Linkify Demo

Click here to linkify the below text

It doesn't matter if the URLs included in the text have the schema included, as in http://www.google.com or not, as in www.planettelex.com . jQuery Linkify will also recognize IP addresses in links, such as ftp://127.0.0.1

In addition to HTTP, HTTPS, and FTP URLs, jQuery Linkify will also recognize and link MAILTO links, such as: mailto:someone@email.com. Click the link above to see it in action!


The Code:

<p><a id="linkify" href="#">Click here to linkify the below text</a></p>
<div id="content">
    <p>It doesn't matter if the URLs included in the text have the schema included, as in http://www.google.com or not, as in www.planettelex.com . jQuery Linkify will also recognize IP addresses in links, such as ftp://127.0.0.1</p>
    <p>In addition to HTTP, HTTPS, and FTP URLs, jQuery Linkify will also recognize and link MAILTO links, such as: mailto:someone@email.com. Click the link above to see it in action!</p>
</div>
<script type="text/javascript">// <![CDATA[
    $(function () {
        $("#linkify").click(function () {
            $("#content").linkify({ target: "_blank" });
        });
    });
// ]]></script>