convert html text code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
seahorse123
Forum Newbie
Posts: 8
Joined: Tue Sep 20, 2005 9:06 pm

convert html text code

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you've stored the entity forms.. you need to decode them back to their "normal" form.. html_entity_decode()
seahorse123
Forum Newbie
Posts: 8
Joined: Tue Sep 20, 2005 9:06 pm

Post 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.
Post Reply