Trick expat into accepting HTML entities

...by substituting the DTD -- Document Type Declaration.
py:strip='' is the same as py:strip='True'

Do it like Genshi!