HTML on Facebook Not Rendering?
November 22, 2008 @ 5:25 pm by J. Bryan Scott
This morning, Ashley Burnett sent me a gift on Facebook. This resulted in the news feed item below:
Strangely, HTML appeared in the rendered page. I thought this might be the product of output sanitization, such as by calling htmlspecialchars or equivalent function with HTML unintentionally in the argument.
But upon inspecting the page with FireBug, I found the following code:
According to FireBug, appropriate HTML is outputted. I suspect there is some JavaScript trickery in the background. This page appears with HTML in the rendered output on Chrome 0.2.149.29 and Firefox 3.0.4.
Does anybody know why? What conditions would cause a browser not to render HTML?
This seems like an interesting bug if you are an engineer at Facebook.
Filed in: Internet.

