Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/02/2010, 09:26
cocodj69
 
Fecha de Ingreso: marzo-2008
Mensajes: 220
Antigüedad: 16 años, 1 mes
Puntos: 0
Pregunta htmlentities no funciona

Alguien sabe por que no funciona la función de php htmlentities. No me funciona tampoco htmlspecialchars.

$str = "A 'quote' is <b>bold</b>";
echo htmlentities($str); // Devuelve A 'quote' is <b>bold</b>

$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new; // Devuelve <a href='test'>Test</a>

Tengo que modificar algo en el config.ini?

Gracias