Hi all,
I've got a quick question regarding php (newbie)
I'm using htmlspecialchar to convet html characters into their entities for storage in the DB, how ever I want the returned text to actually show the html.
I'm still at a learning stage so I've hand coded the following into the DB
<a href="www.somesite.ie">site</a>
however on using html_entity_decode I get back exactly this
<a href="somesite.ie">site</a>
Can anyone point out where I'm going wrong.
Cheers,
Graham
I've got a quick question regarding php (newbie)
I'm using htmlspecialchar to convet html characters into their entities for storage in the DB, how ever I want the returned text to actually show the html.
I'm still at a learning stage so I've hand coded the following into the DB
<a href="www.somesite.ie">site</a>
however on using html_entity_decode I get back exactly this
<a href="somesite.ie">site</a>
Can anyone point out where I'm going wrong.
Cheers,
Graham