Make sure firstof result is escaped.
Use local bleach function to have valid XHTML.

The AN export will use the same call to bleach, so it's easier
to have it output self-closed XML-like elements.