Added xmlentities() function.