PHP Htmlentities Vs Htmlspecialchars Differences Php Functions http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html Subscribe and keep up to date with PHP Htmlentities Vs Htmlspecialchars Differences Php Functions with the latest replies and comments from other people like you who are interested in PHP Htmlentities Vs Htmlspecialchars Differences Php Functions at wallpaperama.com en PHP Htmlentities Vs Htmlspecialchars Differences Php Functions [ Visit Post ] http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html so what is the difference between htmlspecialchars() and htmlentities? htmlspecialchars &acirc;€” Convert special characters to HTML entities htmlentities &acirc;€” Convert all applicable characters to HTML entities htmlentitiesPHP CODE:&amp;lt;?php $str = &amp;quot;A 'quote' is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt;&amp;quot;; echo htmlentities($str); echo htmlentities($str, ENT_QUOTES); ?&amp;gt; OUTPUTA 'quote' is &amp;amp;lt;b&amp;amp;gt;bold&amp;amp;lt;/b&amp; <a href="http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html">..... Read More </a> http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html Comments by: Steven Schoch Fri, 02 Jan 2009 00:34:37 -0700 ...and apparently, this board is not doing it correctly either. http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html#69106 http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html#69106 Comments by: Steven Schoch Fri, 02 Jan 2009 00:34:37 -0700 i found a difference. if the string contains non-ascii characters, htmlspecialchars will display correctly, but htmlentities will not. for example, if the string is &quot;s&Atilde;&uml;ve&quot;, htmlspecialchars will show it correctly, but htmlentities will show it as &quot;s&Atilde;ƒ&Acirc;&uml;ve&quot;. http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html#69105 http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html#69105