Fix escaping html strings in parser