Some time ago I've connected the blog to Facebook using MyApi.co.uk.

It works great, but W3C validator believes fb: tags break the markup.

To whom it does matter, the simple workaround with XHTML markup is to hide the tags inside CDATA.

 

<script type="text/javascript">/* <![CDATA[ */
document.write('<fb:***></fb:***>');
/* ]]> */</script>

 

a piece of code to wrap a $newdata variable containing FBML looks like this:

$newtext = '<script type="text/javascript">/* <![CDATA[ */ document.write(\''.$newtext.'\');/* ]]> */</script>';

That's it.

Valid XHTML 1.0 Transitional

Правильный CSS!