Question

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.

Was it helpful?

Solution

Issue is that the e-mail addr should be in the HTML in order to use the microformat. Perhaps let your server return the microformat (i.e. webservice)?

Returning the vcard from the server can be done using the scripts i found here:

http://www.troywolf.com/articles/php/class_vcard/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top