svn: /phpdoc/en/trunk/reference/strings/functions/ htmlentities.xml
| From: | Peter Cowburn | Date: | Thu, 16 Dec 2010 12:10:03 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ htmlentities.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7537@lists.php.net to get a copy of this message | ||
salathe Thu, 16 Dec 2010 12:10:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306404
Log:
htmlentities() page examples should use htmlentities() function
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/htmlentities.xml
Modified: phpdoc/en/trunk/reference/strings/functions/htmlentities.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/htmlentities.xml 2010-12-16 11:54:14 UTC (rev
306403)
+++ phpdoc/en/trunk/reference/strings/functions/htmlentities.xml 2010-12-16 12:10:03 UTC (rev
306404)
@@ -188,10 +188,10 @@
$str = "\x8F!!!";
// Outputs an empty string
-echo htmlspecialchars("\x8F!!!", ENT_QUOTES, "UTF-8");
+echo htmlentities($str, ENT_QUOTES, "UTF-8");
// Outputs "!!!"
-echo htmlspecialchars("\x8F!!!", ENT_QUOTES | ENT_IGNORE, "UTF-8");
+echo htmlentities($str, ENT_QUOTES | ENT_IGNORE, "UTF-8");
?>
]]>
</programlisting>