Move HTML parsing out of the HTML builder and into the page