freelance84 Posted September 22, 2011 Share Posted September 22, 2011 Does anyone have an example of when htmlentities would be used over htmlspecialchars? Link to comment https://forums.phpfreaks.com/topic/247648-cases-of-htmlentities-over-htmlspecialchars/ Share on other sites More sharing options...
freelance84 Posted September 22, 2011 Author Share Posted September 22, 2011 http://htmlpurifier.org/ Link to comment https://forums.phpfreaks.com/topic/247648-cases-of-htmlentities-over-htmlspecialchars/#findComment-1271745 Share on other sites More sharing options...
AbraCadaver Posted September 22, 2011 Share Posted September 22, 2011 Does anyone have an example of when htmlentities would be used over htmlspecialchars? Read the man pages that you posted. htmlspecialchars() only does 5 characters, htmlentities() does all characters that have an HTML character entity equivalent. Link to comment https://forums.phpfreaks.com/topic/247648-cases-of-htmlentities-over-htmlspecialchars/#findComment-1271755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.