문제

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/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top