implemented htmlentities in template data input fields