开发者

Using Microformats but protecting your email (with Javascript)

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.


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜