<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Text to HTML in JavaScript'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 05 Apr 2026 17:58:18 +0000</lastBuildDate>
    <item>
      <title>naren1012 said on 09/Feb/2011</title>
      <link>https://snipplr.com/view/48519/text-to-html-in-javascript</link>
      <description>&lt;p&gt;Tested this regex..and it works for almost all cases except these two cases &#13;
Add these two lines of text to test() method and run the script ..&#13;
 $text = $text+"&lt;a href=â€http://www.test.comâ€&gt;Test Link!&lt;/a&gt; "&#13;
 $text = $text+"ftp://ftp.funet.fi/pub/standards/RFC/rfc959.txt "&#13;
&#13;
I guess a href test case is beyond scope of regex. But I guess ftp case is fixable.&#13;
&#13;
Thanks for the excellent script though!!&lt;/p&gt;</description>
      <pubDate>Wed, 09 Feb 2011 19:41:11 UTC</pubDate>
      <guid>https://snipplr.com/view/48519/text-to-html-in-javascript</guid>
    </item>
    <item>
      <title>naren1012 said on 09/Feb/2011</title>
      <link>https://snipplr.com/view/48519/text-to-html-in-javascript</link>
      <description>&lt;p&gt;Found another issue with this regex.. to test add this line in test() method.&#13;
$text= $text+"yoursite.com..if" &#13;
Here '..if' also gets included in the link.&lt;/p&gt;</description>
      <pubDate>Wed, 09 Feb 2011 20:41:18 UTC</pubDate>
      <guid>https://snipplr.com/view/48519/text-to-html-in-javascript</guid>
    </item>
  </channel>
</rss>
