Add asHtml function to display raw HTML in the browser.