Reworked HtmlUtils.