Page 1 of 1

convert html text code

Posted: Fri Sep 23, 2005 5:59 pm
by seahorse123
I have this saved in DB table:

<a href=abc.php/>link</a>

Now if I retrieve it from DB, it will display the html code:
<a href=abc.php>link</a>

instead of the hyperlink, how can I fix this issue? thanks.

Posted: Fri Sep 23, 2005 6:21 pm
by feyd
you've stored the entity forms.. you need to decode them back to their "normal" form.. html_entity_decode()

Posted: Fri Sep 23, 2005 6:54 pm
by seahorse123
feyd wrote:you've stored the entity forms.. you need to decode them back to their "normal" form.. html_entity_decode()
Thank you very much, feyd, it works.