Skip to content

farneman/javascript-linkify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 href="http://a.com" title="http://a.com target="_blank' >a.com <a href="http://b.com" title="http://b.com target="_blank' >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/

About

JavaScript Linkify: Process links in text

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
LICENSE-GPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.0%
  • PHP 24.0%