remove else in function escapeHTML