Fix html escaping in asHtml