Replaced use of htmlentities with dol_htmlentities