removed duplicate html_escape methods (to prevent double html entity encoding)