Regex replaced with HTML parser.