[Php-it] html entities
David Scatigna
david at tomato.it
Wed Sep 6 18:07:34 CEST 2006
Domenico L. wrote:
> Devo convertire e de convertire tutte i caratteri speciali in entitià
> html, MA (!) non devo toccare i tag....
>
> cioè da
> però è <b>strano</b>!
>
> devo ottnere
>
> però ` <b>strano</b>!
soluzione scema ma efficate
fai un str_replace generale di < e > con { e }
htmlenties
rifai str_replace di { e } con < e >
--
Saluti,
Tomato Interactive
David Scatigna
[ Tomato.it - http://www.tomato.it ]
More information about the Php-it
mailing list