- jQuery 1.6+
- Identifies links without needing a protocol prefix like "http://".
- Identifies MAILTO links.
- Identifies IP addresses.
Include jQuery and jQuery Linkify:
Have text with URLs or IP addresses in your HTML:
<div id="content"> <h3>Text to be Linkified</h3> <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:[email protected]. </p> </div>
See the demo in action for a complete example.
- jQuery: MIT/GPL license
Copyright 2015 Planet Telex, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.