<?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: Accessibly Cloak Email Addresses with&#160;jQuery</title>
	<atom:link href="http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery</link>
	<description>WordPress and PHP Developer</description>
	<lastBuildDate>Thu, 26 Jan 2012 17:22:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: andy</title>
		<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/comment-page-1#comment-378</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Wed, 08 Dec 2010 15:51:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=29#comment-378</guid>
		<description>George, good call, thanks! I&#039;ll take a look next chance I get!</description>
		<content:encoded><![CDATA[<p>George, good call, thanks! I&#8217;ll take a look next chance I get!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/comment-page-1#comment-373</link>
		<dc:creator>George</dc:creator>
		<pubDate>Fri, 05 Nov 2010 19:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=29#comment-373</guid>
		<description>Hi andy,
I use this script alot, but noticed it doesn&#039;t work with email addresses with more than 1 dot.  I&#039;ve improvised.

&lt;code&gt;
$(&quot;.emailCloak&quot;).each(function(){
	var ats, dots, address, i, foundDots;
	ats = [ &#039; at &#039;, &#039; (at) &#039;, &#039; [at] &#039; ];
	dots = [ &#039; dot &#039;, &#039; (dot) &#039;, &#039; [dot] &#039; ];
	address = $(this).html();
	for ( i = 0; i &lt; ats.length; i++ ) {
		address = address.replace(ats[i], &#039;@&#039;);
	}
	for ( i = 0; i &lt; dots.length; i++ ) {
		foundDots = [];
		foundDots = address.split(dots[i]);
		for(var j=1; j&lt;foundDots.length; j++) {
			address = address.replace(dots[i], &#039;.&#039;);
		}
	}
	$(this).html(&#039;&lt;a href=&quot;mailto:&#039; + address + &#039;&quot; rel=&quot;nofollow&quot;&gt;&#039; + address + &#039;&lt;/a&gt;&#039;);
});
&lt;/code&gt;


(ps. this probably could have been done with a regex /g function, but I&#039;m no good with regex).</description>
		<content:encoded><![CDATA[<p>Hi andy,<br />
I use this script alot, but noticed it doesn&#8217;t work with email addresses with more than 1 dot.  I&#8217;ve improvised.</p>
<p><code><br />
$(".emailCloak").each(function(){<br />
	var ats, dots, address, i, foundDots;<br />
	ats = [ ' at ', ' (at) ', ' [at] ' ];<br />
	dots = [ ' dot ', ' (dot) ', ' [dot] ' ];<br />
	address = $(this).html();<br />
	for ( i = 0; i &lt; ats.length; i++ ) {<br />
		address = address.replace(ats[i], &#039;@&#039;);<br />
	}<br />
	for ( i = 0; i &lt; dots.length; i++ ) {<br />
		foundDots = [];<br />
		foundDots = address.split(dots[i]);<br />
		for(var j=1; j&lt;foundDots.length; j++) {<br />
			address = address.replace(dots[i], &#039;.&#039;);<br />
		}<br />
	}<br />
	$(this).html(&#039;<a href="mailto:' + address + '" rel="nofollow">' + address + '</a>');<br />
});<br />
</code></p>
<p>(ps. this probably could have been done with a regex /g function, but I&#8217;m no good with regex).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/comment-page-1#comment-361</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Thu, 09 Sep 2010 15:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=29#comment-361</guid>
		<description>@Andy I just updated the example to use 1.4.2 and it&#039;s working well: 

http://theandystratton.com/examples/email-conversion.html</description>
		<content:encoded><![CDATA[<p>@Andy I just updated the example to use 1.4.2 and it&#8217;s working well: </p>
<p><a href="http://theandystratton.com/examples/email-conversion.html" rel="nofollow">http://theandystratton.com/examples/email-conversion.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/comment-page-1#comment-354</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sun, 15 Aug 2010 00:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=29#comment-354</guid>
		<description>It&#039;s been a year and a half, I tested the code and found out it doesn&#039;t work with newer versions of jQuery, like 1.3.2 or 1.4.2. Spent a few hours to find a problem, but failed - would be great if you could rewrite it.

Thanks anyway, it worked for me for some time.</description>
		<content:encoded><![CDATA[<p>It&#8217;s been a year and a half, I tested the code and found out it doesn&#8217;t work with newer versions of jQuery, like 1.3.2 or 1.4.2. Spent a few hours to find a problem, but failed &#8211; would be great if you could rewrite it.</p>
<p>Thanks anyway, it worked for me for some time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beny</title>
		<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/comment-page-1#comment-335</link>
		<dc:creator>Beny</dc:creator>
		<pubDate>Thu, 22 Jul 2010 17:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=29#comment-335</guid>
		<description>Useful. Thanx!</description>
		<content:encoded><![CDATA[<p>Useful. Thanx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/comment-page-1#comment-12</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Sat, 06 Jun 2009 17:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=29#comment-12</guid>
		<description>That&#039;s great! I&#039;m glad it was helpful, thanks for sharing, too!</description>
		<content:encoded><![CDATA[<p>That&#8217;s great! I&#8217;m glad it was helpful, thanks for sharing, too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Herr</title>
		<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/comment-page-1#comment-11</link>
		<dc:creator>Jeffrey Herr</dc:creator>
		<pubDate>Fri, 05 Jun 2009 17:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=29#comment-11</guid>
		<description>Thanks for the nudge.  It was easy enough, but I guess I just wanted someone to do it for me!  I used this approach on a SquareSpace website.  Works great, and is flexible enough for me to choose my own obfuscation patterns to further thwart spammers...  Appreciate it!</description>
		<content:encoded><![CDATA[<p>Thanks for the nudge.  It was easy enough, but I guess I just wanted someone to do it for me!  I used this approach on a SquareSpace website.  Works great, and is flexible enough for me to choose my own obfuscation patterns to further thwart spammers&#8230;  Appreciate it!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

