简体   繁体   English

PHP 的 HTML Tidy 移除 Facebook 的 FBML

[英]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).我知道 FBML 已被弃用,但我仍然对它有疑问(维护一些遗留代码)。

I'm using FBML in a template which gets parsed by PHP's Tidy, unfortunately TIDY strips the FBML code.我在由 PHP 的 Tidy 解析的模板中使用 FBML,不幸的是,TIDY 剥离了 FBML 代码。 Do you know of a workaround to use Tidy + FBML?您知道使用 Tidy + FBML 的解决方法吗?

Example FMBL Code: FMBL 代码示例:

<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).除了需要 XHTML 和设置xmlns:fb命名空间( <html xmlns="w3.org/1999/xhtml" xmlns:fb="facebook.com/2008/fbml"> ),它还需要input-xml = true配置似乎在这里工作(从技术上讲,内容是 XHTML+XML afaik,而不是“纯”(x)html)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM