![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/12/2008, 19:05
|
![Avatar de hgp147](http://static.forosdelweb.com/customavatars/avatar163020_2.gif) | | | Fecha de Ingreso: diciembre-2006 Ubicación: Buenos Aires, Argentina
Mensajes: 980
Antigüedad: 18 años, 1 mes Puntos: 36 | |
Convertir caracteres a su entidad HTML, pero algunos no Hola, quería utilizar la función htmlentities para convertir algunos caracteres a su entidad HTML aplicable, pero no quiero que convierta el '<' a < si tengo una imagen o si tengo <b>. Cómo podría hacer?
Se me ocurre usar primero htmlentities y despues un preg_replace para remplzar <img por <img
Se puede hacer de alguna forma mejor?
Gracias. Que tengan un feliz año nuevo.
Última edición por hgp147; 30/12/2008 a las 19:12 |