Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/09/2008, 04:45
Avatar de Legoltaz
Legoltaz
 
Fecha de Ingreso: agosto-2008
Mensajes: 325
Antigüedad: 15 años, 8 meses
Puntos: 6
Respuesta: Deshabilitar ciertos tags HTML en textarea

Pues no me deja.
Ahora el código está así:

Código PHP:
$_POST['text'] = strip_tags($_POST['text'],'<a><img><b><i><u><br>');
$_POST['text'] = nl2br($_POST['text']);
$_POST['text'] = str_replace('[black]','<b>',$_POST['text']);
$_POST['text'] = str_replace('[/black]','</b>',$_POST['text']);
$_POST['text'] = str_replace('[italic]','<i>',$_POST['text']);
$_POST['text'] = str_replace('[/italic]','</i>',$_POST['text']); 
EDIT: Parece que sí funciona :$