<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Function to Auto Convert URL into Clickable Hyperlink (Anchor &lt;a&gt; Tag)</title>
	<atom:link href="http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/feed/" rel="self" type="application/rss+xml" />
	<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/</link>
	<description>Design and Web Development</description>
	<lastBuildDate>Sun, 05 Feb 2012 03:52:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Keri Jilson</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-17001</link>
		<dc:creator>Keri Jilson</dc:creator>
		<pubDate>Tue, 06 Dec 2011 21:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-17001</guid>
		<description>You saved my morning! ILY!</description>
		<content:encoded><![CDATA[<p>You saved my morning! ILY!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stace Cameron</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-10977</link>
		<dc:creator>Stace Cameron</dc:creator>
		<pubDate>Tue, 19 Apr 2011 15:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-10977</guid>
		<description>Oops, the string is of the form

href=&quot; url with http://  prefix&quot; url without http:// prefix 

It got rendered in my previous question.</description>
		<content:encoded><![CDATA[<p>Oops, the string is of the form</p>
<p>href=&#8221; url with http://  prefix&#8221; url without http:// prefix </p>
<p>It got rendered in my previous question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stace Cameron</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-10976</link>
		<dc:creator>Stace Cameron</dc:creator>
		<pubDate>Tue, 19 Apr 2011 15:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-10976</guid>
		<description>This code:

$string = &#039;&lt;a&gt;www.somesite.com&lt;/a&gt;&#039;;
echo &quot;before\n&quot;;
echo $string.&quot;\n&quot;;
echo &quot;after\n&quot;;
echo make_clickable($string);

Yields:

before

www.somesite.com

after

http://www.somesite.com

How would one modify the function to keep from adding the &quot;http://&quot; ?</description>
		<content:encoded><![CDATA[<p>This code:</p>
<p>$string = &#8216;<a>http://www.somesite.com</a>&#8216;;<br />
echo &#8220;before\n&#8221;;<br />
echo $string.&#8221;\n&#8221;;<br />
echo &#8220;after\n&#8221;;<br />
echo make_clickable($string);</p>
<p>Yields:</p>
<p>before</p>
<p><a href="http://www.somesite.com" rel="nofollow">http://www.somesite.com</a></p>
<p>after</p>
<p><a href="http://www.somesite.com" rel="nofollow">http://www.somesite.com</a></p>
<p>How would one modify the function to keep from adding the &#8220;http://&#8221; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akos</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-10860</link>
		<dc:creator>Akos</dc:creator>
		<pubDate>Sat, 02 Apr 2011 14:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-10860</guid>
		<description>This is the best PHP post I have ever seen. I really have to thank you for publishing this.</description>
		<content:encoded><![CDATA[<p>This is the best PHP post I have ever seen. I really have to thank you for publishing this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-7660</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 30 Dec 2010 16:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-7660</guid>
		<description>Excellent... one of those few snippets that are truly copy and paste. Well done!</description>
		<content:encoded><![CDATA[<p>Excellent&#8230; one of those few snippets that are truly copy and paste. Well done!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yannick</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-7619</link>
		<dc:creator>Yannick</dc:creator>
		<pubDate>Mon, 27 Dec 2010 11:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-7619</guid>
		<description>Awesome code...</description>
		<content:encoded><![CDATA[<p>Awesome code&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scvinodkumar</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-7432</link>
		<dc:creator>scvinodkumar</dc:creator>
		<pubDate>Thu, 02 Dec 2010 10:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-7432</guid>
		<description>i tried your function its working fine... but when i have url within double quotes, it is not converting to url. For example,

$string = &#039;I have some texts here and also links such as &quot;http://www.youtube.com&quot; , www.haha.com and lol@example.com. They are ready to be replaced.&#039;;

when i call the functin, it is converting haha.com and lol@exmple.com only not youtube.com..

Please help me on this...</description>
		<content:encoded><![CDATA[<p>i tried your function its working fine&#8230; but when i have url within double quotes, it is not converting to url. For example,</p>
<p>$string = &#8216;I have some texts here and also links such as &#8220;http://www.youtube.com&#8221; , <a href="http://www.haha.com" rel="nofollow">http://www.haha.com</a> and <a href="mailto:lol@example.com">lol@example.com</a>. They are ready to be replaced.&#8217;;</p>
<p>when i call the functin, it is converting haha.com and <a href="mailto:lol@exmple.com">lol@exmple.com</a> only not youtube.com..</p>
<p>Please help me on this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D. Strout</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-7227</link>
		<dc:creator>D. Strout</dc:creator>
		<pubDate>Fri, 24 Sep 2010 00:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-7227</guid>
		<description>@Raja - In the _make_url_clickable_cb, _make_web_ftp_clickable_cb, and _make_email_clickable_cb functions, just add your target attribute to the link tags. However, you must do it in this format:

&lt;a href=&quot;$url&quot; rel=&quot;nofollow&quot;&gt;$url&lt;/a&gt;

In other words, the quotes around your target attribute&#039;s value must be preceded by a slash.</description>
		<content:encoded><![CDATA[<p>@Raja &#8211; In the _make_url_clickable_cb, _make_web_ftp_clickable_cb, and _make_email_clickable_cb functions, just add your target attribute to the link tags. However, you must do it in this format:</p>
<p><a href="$url" rel="nofollow">$url</a></p>
<p>In other words, the quotes around your target attribute&#8217;s value must be preceded by a slash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nauris</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-7102</link>
		<dc:creator>Nauris</dc:creator>
		<pubDate>Thu, 12 Aug 2010 15:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-7102</guid>
		<description>Thanks. Best script that I found in web!</description>
		<content:encoded><![CDATA[<p>Thanks. Best script that I found in web!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis Milanese</title>
		<link>http://zenverse.net/php-function-to-auto-convert-url-into-hyperlink/comment-page-1/#comment-7086</link>
		<dc:creator>Luis Milanese</dc:creator>
		<pubDate>Fri, 06 Aug 2010 13:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://zenverse.net/?p=775#comment-7086</guid>
		<description>Wow, you just saved my ass! Thank you very much.</description>
		<content:encoded><![CDATA[<p>Wow, you just saved my ass! Thank you very much.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

