fixed leak in htmlEscape
Merge pull request #671 from telefonicaid/bug/htmlEscape_leaks

fixed leak in htmlEscape