samerhannoun Posted August 16, 2011 Share Posted August 16, 2011 hi all I am into using htmlspecialchars function I working with PHP manual example but not working for me I am using WAMP server latest version this is the example <?php$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);echo $new; // <a href='test'>Test</a>?>the output for me <a href='test'>Test</a>By the way, I want to ask anther question,, How can I retrieve this encoded html again as html ??? are there a function to do that???best wishes Link to comment Share on other sites More sharing options...
justsomeguy Posted August 16, 2011 Share Posted August 16, 2011 You're probably looking at it in the browser. View the source from the browser and you should see the escaped characters. Output the string both before and after using the function to see the difference.http://www.php.net/manual/en/function.html...hars-decode.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.