<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Excellent suggestions, might be time to do some forking :P<br>
<br>
Thanks a bunch.<br>
<br>
Paul Campbell wrote:
<blockquote
cite="mid:l2i78c6a6cc1004130449q1c1d2e11l460926e5b051bb95@mail.gmail.com"
type="cite">
<pre wrap="">Domainatrix is pretty sweet:
<a class="moz-txt-link-freetext" href="http://github.com/pauldix/domainatrix">http://github.com/pauldix/domainatrix</a>
and I believe Rails 3's implementation of auto_link is much better
than 2.x ... Tom Preston Werner linked up a back port:
<a class="moz-txt-link-freetext" href="http://gist.github.com/358471">http://gist.github.com/358471</a>
—P
On Tue, Apr 13, 2010 at 12:38 PM, Kenneth Lee <a class="moz-txt-link-rfc2396E" href="mailto:kenfodder@gmail.com"><kenfodder@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Guys,
Quite a few projects I've worked on I've had to convert URLs with flat text
to links in HTML. But every time the implementation feels inadequate with
some ridiculous regex that isn't bundled with a spec to test against.
Is there a Gem or library that will allow me to do this easily and in a
reusable way. If so I will go into banana dance mode!
Ideally I want to simply gem install something, then in simply do
linkify(sometext) possible with a block to customize the replacement for
html classes etc... and some config or options to say whether the http(s)
part must exist, must have this set of subdomains, must not be a top-level,
all these fancy options to correctly match it.
I'm getting this itch to write a library like this but surely it's done?!
Cheers,
Ken
_______________________________________________
Chat mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>