Using Microformats but protecting your email (with Javascript).

Posted by Lukas Oppermann on Stack Overflow See other posts from Stack Overflow or by Lukas Oppermann
Published on 2010-06-13T11:44:26Z Indexed on 2010/06/13 11:52 UTC
Read the original article Hit count: 376

Hey guys,

I am using microformats for a project and with this I have the following Problem. I use a Javascript to protect the email addresses, but when saving the microformats as a vCard it puts the javascript code in the email address field.

//<![CDATA[ document.write("<n uers="znvygb:vasb100irner56arg">vasb100irner56arg<057n>".replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26)}))//]]>

Does anyone have any idea how to still protect the email address but use microformats?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about email