<?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: JavaScript Email Hiding</title>
	<atom:link href="http://austinmatzko.com/2005/06/28/javascript-email-hiding/feed/" rel="self" type="application/rss+xml" />
	<link>http://austinmatzko.com/2005/06/28/javascript-email-hiding/</link>
	<description>A blog about philosophy, Christianity, web development and whatever else I feel like writing about.</description>
	<lastBuildDate>Sat, 15 Jun 2013 14:59:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2-RC4-18391</generator>
	<item>
		<title>By: Hans PUFAL</title>
		<link>http://austinmatzko.com/2005/06/28/javascript-email-hiding/comment-page-1/#comment-197351</link>
		<dc:creator>Hans PUFAL</dc:creator>
		<pubDate>Fri, 18 Apr 2008 02:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilfilosofo.com/blog/2005/06/28/javascript-email-hiding/#comment-197351</guid>
		<description>Why not simply use a different email address format inside the hrefs of links and use JS to rewrite into a conventional form? 

The author has little to do other than to reformulate email addresses and the page structure and styling is not impacted at all.  

Instead of ... href=&quot;mailto:name@domain.tld&quot; ... write href=&quot;email:domain.tld!name&quot; and the following suffices to make the necessary transformations (it also transforms any occurreneces of the mangled email address in the link innerHTML)  :


&lt;code&gt;for (var m, x = document.getElementsByTagName (&quot;a&quot;), i = x.length; i--;)
    if (m = x[i].href.match (/email:(.+)!(.+)/i)) {
      x[i].href = &#039;mailto:&#039; + m[2] + &#039;@&#039; + m[1];
      x[i].innerHTML = x[i].innerHTML.replace (m[1] + &quot;!&quot; + m[2], m[2] + &#039;@&#039; + m[1]);
    }  
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Why not simply use a different email address format inside the hrefs of links and use JS to rewrite into a conventional form? </p>
<p>The author has little to do other than to reformulate email addresses and the page structure and styling is not impacted at all.  </p>
<p>Instead of &#8230; href=&#8221;mailto:name@domain.tld&#8221; &#8230; write href=&#8221;email:domain.tld!name&#8221; and the following suffices to make the necessary transformations (it also transforms any occurreneces of the mangled email address in the link innerHTML)  :</p>
<p><code>for (var m, x = document.getElementsByTagName ("a"), i = x.length; i--;)<br />
    if (m = x[i].href.match (/email:(.+)!(.+)/i)) {<br />
      x[i].href = 'mailto:' + m[2] + '@' + m[1];<br />
      x[i].innerHTML = x[i].innerHTML.replace (m[1] + "!" + m[2], m[2] + '@' + m[1]);<br />
    }<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Il Filosofo &#187; New WordPress Plugin: Hide Emails from Spambots</title>
		<link>http://austinmatzko.com/2005/06/28/javascript-email-hiding/comment-page-1/#comment-8848</link>
		<dc:creator>Il Filosofo &#187; New WordPress Plugin: Hide Emails from Spambots</dc:creator>
		<pubDate>Fri, 11 Aug 2006 13:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilfilosofo.com/blog/2005/06/28/javascript-email-hiding/#comment-8848</guid>
		<description>[...] Over a year ago I showed how I like to hide email addresses using JavaScript. A recent project made it convenient to wrap that into a WordPress plugin. [...]</description>
		<content:encoded><![CDATA[<p>[...] Over a year ago I showed how I like to hide email addresses using JavaScript. A recent project made it convenient to wrap that into a WordPress plugin. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
