gabrielizaias/urlToLink — pull request #8 by imuneer (2014-11-13 10:57:49+00:00)
Title: A fix and 2 new options for shortening the anchor text & remove http/https from anchor text

A fix and 2 new options for shortening the anchor text & remove http/https from anchor text added.

Options: 1
Shortening tag text to trim down to domain name level and still the hyperlink will point to the full url.
example :
the text for following URL
https://github.com/encodez/urlToLink/blob/master/jquery.urlToLink.js
will be converted to "github.com" instead of the long line

Options: 2
Nofollow option added as attribute for anchor tag

Fix:
A fix added for URL starting with non HTTP which caused link to resolve to the current domain was fixed by adding http.