Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/02/2016, 11:30
rodocoyote15
 
Fecha de Ingreso: diciembre-2015
Mensajes: 529
Antigüedad: 8 años, 4 meses
Puntos: 39
Respuesta: eliminar formato HTML dentro de otra etiqueta

Entonces podrías usar
Código PHP:
Ver original
  1. htmlespecialchars

Algo así

Código PHP:
Ver original
  1. <?php
  2. $text = '<a></a><p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>';
  3. echo htmlspecialchars($text);
  4. ?>