PHP's HTML Tidy removes Facebook's FBML
I know FBML is deprecated though I still have a question about it (maintaining some legacy code).
I'm using FBML in a template which gets parsed by PHP's 开发者_如何学运维Tidy, unfortunately TIDY strips the FBML code. Do you know of a workaround to use Tidy + FBML?
Example FMBL Code:
<fb:like href="http://www.facebook.com/vanity.url"></fb:like>
Besides neeeding to be XHTML & setting the xmlns:fb
namespace (<html xmlns="w3.org/1999/xhtml" xmlns:fb="facebook.com/2008/fbml">
), it needs input-xml
=true
in the config, seems to work here (technically, the content is XHTML+XML afaik, not 'pure' (x)html).
精彩评论