Cita:
Iniciado por mon
Me tienes que decir cómo porque ya estoy algo justo y no sé, gracias
¿No te miraste el enlace del htmlentities?
Según la documentación oficial, prueba a ponerlo así:
Código PHP:
$resultado = htmlentities($cadena, ENT_NOQUOTES, 'UTF-8');