htmlentities for added compatibility