fixed leak in htmlEscape

Fixed a leak in a function calling htmlEscape (valueTag),