fix htmlEncodeTagged handling of html comments