<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Text to HTML in JavaScript'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 10:35:19 GMT</pubDate>
<item>
<title>naren1012 said on 2/9/11</title>
<link>http://snipplr.com/view/48519/text-to-html-in-javascript/</link>
<description><![CDATA[ Found another issue with this regex.. to test add this line in test() method.
$text= $text+"yoursite.com..if" 
Here '..if' also gets included in the link. ]]></description>
<pubDate>Wed, 09 Feb 2011 20:41:18 GMT</pubDate>
<guid>http://snipplr.com/view/48519/text-to-html-in-javascript/</guid>
</item>
<item>
<title>naren1012 said on 2/9/11</title>
<link>http://snipplr.com/view/48519/text-to-html-in-javascript/</link>
<description><![CDATA[ Tested this regex..and it works for almost all cases except these two cases 
Add these two lines of text to test() method and run the script ..
 $text = $text+"<a href=”http://www.test.com”>Test Link!</a> "
 $text = $text+"ftp://ftp.funet.fi/pub/standards/RFC/rfc959.txt "

I guess a href test case is beyond scope of regex. But I guess ftp case is fixable.

Thanks for the excellent script though!! ]]></description>
<pubDate>Wed, 09 Feb 2011 19:41:11 GMT</pubDate>
<guid>http://snipplr.com/view/48519/text-to-html-in-javascript/</guid>
</item>
</channel>
</rss>