Hi Guys,
another little probelm here.
I have this in my database
My+%3CFONT+face%3D%22Arial+Black%22%3E%3CEM%3ETest%3C%2FEM%3E%3C%2FFONT%3E
When I retrieve it I need it to show it like it would be in say Word.
I have read something about html entities but what I tried does not work
I am using this
<?php echo $cpro ?> // which prints the html above.
Anyone know how to get it ot display with the font size etc?
thanks
HTML Entities?
Moderator: General Moderators
You're wanting html_entity_decode()
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
This is a url encoded string, not html entities.
Use urldecode() http://us2.php.net/manual/en/function.urldecode.php
Use urldecode() http://us2.php.net/manual/en/function.urldecode.php