plodos Posted March 16, 2008 Share Posted March 16, 2008 <?php echo ' htmlentities(<a href=\"http://www.xxxxx.com\">XXXXX.ORG!</a>) '; ?> the output must be like this <a href=\"http://www.xxxxx.com\">XXXXX.ORG!</a> but htmlentities function is not working..whats wrong? Link to comment https://forums.phpfreaks.com/topic/96342-htmlentities/ Share on other sites More sharing options...
discomatt Posted March 16, 2008 Share Posted March 16, 2008 All htmlentities does is convert characters to their html-safe values... it will look like unparsed HTML code when viewed in a browser. If you check out the source, you will notice all < are now < and all > are > ect... Link to comment https://forums.phpfreaks.com/topic/96342-htmlentities/#findComment-493145 Share on other sites More sharing options...
plodos Posted March 16, 2008 Author Share Posted March 16, 2008 thank you... Link to comment https://forums.phpfreaks.com/topic/96342-htmlentities/#findComment-493150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.