Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

JavaScript Linkify: Process links in text

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.markdown

New In This Fork:

This fork aggregates work from two other forks. It also fixes an caused when linkify is given a string with no links in it.

From @eliellis:

Updated the Top Level Domain list.

Added By @mahemoff:

Twitter option

linkify('@mahemoff', { twitter: true })

becomes: @mahemoff

In doing so, there's some refactoring to simplify the way the uber URI regexp is built up. There's also some basic support for Node and a tiny test (in CoffeeScript).

Attribs option

linkify('a.com b.com', { attribs: { target: '_blank' } })

becomes: a.com b.com

Note these links have target='_blank' as an extra attribute, in addition to the regular href and title.

JavaScript Linkify: Process links in text!

http://benalman.com/projects/javascript-linkify/

Version: 0.3, Last updated: 6/27/2009

Visit the project page for more information and usage examples!

Documentation

http://benalman.com/code/projects/javascript-linkify/docs/

Examples

This working example, complete with fully commented code, illustrates one way in which this code can be used.

http://benalman.com/code/projects/javascript-linkify/examples/linkify/

Support and Testing

Information about what browsers this code has been tested in.

Browsers Tested

Internet Explorer 6-8, Firefox 3-3.5, Safari 3-4, Chrome, Opera 9.

Release History

0.3 - (6/27/2009) Initial release

License

Copyright (c) 2009 "Cowboy" Ben Alman
Dual licensed under the MIT and GPL licenses.
http://benalman.com/about/license/

Something went wrong with that request. Please try again.