added htmlEntities dom util