svn: /phpdoc/en/trunk/reference/strings/functions/ htmlspecialchars.xml

From: Date: Thu, 17 Mar 2011 02:57:20 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ htmlspecialchars.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7863@lists.php.net to get a copy of this message
aharvey Thu, 17 Mar 2011 02:57:20 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309322 Log: Fix doc bug #54263 (htmlspecialchars - charsets are not equivalent). Bug: http://bugs.php.net/54263 (Assigned) htmlspecialchars - charsets are not equivalent Changed paths: U phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml Modified: phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml 2011-03-17 02:47:02 UTC (rev 309321) +++ phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml 2011-03-17 02:57:20 UTC (rev 309322) @@ -106,9 +106,10 @@ <literal>ISO-8859-1</literal>, <literal>ISO-8859-15</literal>, <literal>UTF-8</literal>, <literal>cp866</literal>, <literal>cp1251</literal>, <literal>cp1252</literal>, and - <literal>KOI8-R</literal> are effectively equivalent, as the - characters affected by <function>htmlspecialchars</function> - occupy the same positions in all of these charsets. + <literal>KOI8-R</literal> are effectively equivalent, provided the + <parameter>string</parameter> itself is valid for the character set, as + the characters affected by <function>htmlspecialchars</function> occupy + the same positions in all of these charsets. </para> &reference.strings.charsets; </listitem> @@ -131,6 +132,12 @@ <para> The converted <type>string</type>. </para> + <para> + If the input <parameter>string</parameter> contains an invalid code unit + sequence within the given <parameter>charset</parameter> and the + <constant>ENT_IGNORE</constant> flag is not set, then + <function>htmlspecialchars</function> will return an empty string. + </para> </refsect1> <refsect1 role="changelog">

« previous php.doc.cvs (#7863) next »