make xhtml compliant

To fix 
`Failed to set the 'innerHTML' property on 'Element': The provided markup is invalid XML, and therefore cannot be inserted into an XML document.
`

Which is the reason of a `DOMUtil` failed error