remove unexpected HTML instead of converting it to text