Updated normaliseHtml to use a regex.