bjori           Tue May 22 15:34:06 2007 UTC

  Modified files:              
    /phpdoc/en/reference/strings/functions      htmlspecialchars.xml 
                                                htmlentities.xml 
    /phpdoc/en/appendices       migration52.xml 
  Log:
  htmlspecialchars() & htmlentities() have a new optional friend
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/strings/functions/htmlspecialchars.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/strings/functions/htmlspecialchars.xml
diff -u phpdoc/en/reference/strings/functions/htmlspecialchars.xml:1.8 
phpdoc/en/reference/strings/functions/htmlspecialchars.xml:1.9
--- phpdoc/en/reference/strings/functions/htmlspecialchars.xml:1.8      Thu Aug 
 3 13:57:22 2006
+++ phpdoc/en/reference/strings/functions/htmlspecialchars.xml  Tue May 22 
15:34:06 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
   <refentry id="function.htmlspecialchars">
    <refnamediv>
@@ -15,6 +15,7 @@
       
<methodparam><type>string</type><parameter>string</parameter></methodparam>
       <methodparam 
choice="opt"><type>int</type><parameter>quote_style</parameter></methodparam>
       <methodparam 
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
+      <methodparam 
choice="opt"><type>bool</type><parameter>double_encode</parameter></methodparam>
      </methodsynopsis>
     <para>
      Certain characters have special significance in HTML, and should
@@ -92,6 +93,11 @@
     </para>
     &reference.strings.charsets;
     <para>
+     When <parameter>double_encode</parameter> is turned off PHP will not
+     encode existing html entities, the default is to convert everything.
+     This parameter was added in PHP 5.2.3.
+    </para>
+    <para>
      See also <function>get_html_translation_table</function>,
      <function>htmlspecialchars_decode</function>,
      <function>strip_tags</function>,
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/strings/functions/htmlentities.xml?r1=1.10&r2=1.11&diff_format=u
Index: phpdoc/en/reference/strings/functions/htmlentities.xml
diff -u phpdoc/en/reference/strings/functions/htmlentities.xml:1.10 
phpdoc/en/reference/strings/functions/htmlentities.xml:1.11
--- phpdoc/en/reference/strings/functions/htmlentities.xml:1.10 Thu Jul 24 
09:13:45 2003
+++ phpdoc/en/reference/strings/functions/htmlentities.xml      Tue May 22 
15:34:06 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
   <refentry id="function.htmlentities">
    <refnamediv>
@@ -15,6 +15,7 @@
       
<methodparam><type>string</type><parameter>string</parameter></methodparam>
       <methodparam 
choice="opt"><type>int</type><parameter>quote_style</parameter></methodparam>
       <methodparam 
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
+      <methodparam 
choice="opt"><type>bool</type><parameter>double_encode</parameter></methodparam>
      </methodsynopsis>
     <para>
      This function is identical to
@@ -54,17 +55,21 @@
      </table>
     </para>
     <para>
-     Support for the optional <parameter>quote</parameter> parameter was
-     added in PHP 4.0.3.
-    </para>
-    <para>
      Like <function>htmlspecialchars</function>, it takes an optional
      third argument <parameter>charset</parameter> which defines character
-     set used in conversion. Support for this argument was added in PHP 4.1.0.
+     set used in conversion.
      Presently, the ISO-8859-1 character set is used as the default.
     </para>
     &reference.strings.charsets;
     <para>
+     When <parameter>double_encode</parameter> is turned off PHP will not
+     encode existing html entities. The default is to convert everything.
+    </para>
+    <para>The <parameter>double_quote</parameter> parameter was added in PHP 
5.2.3,
+     <parameter>charset</parameter> in 4.1.0 and
+     <parameter>quote</parameter> in PHP 4.0.3.
+    </para>
+    <para>
      If you're wanting to decode instead (the reverse) you can use
      <function>html_entity_decode</function>.
     </para>
http://cvs.php.net/viewvc.cgi/phpdoc/en/appendices/migration52.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/appendices/migration52.xml
diff -u phpdoc/en/appendices/migration52.xml:1.6 
phpdoc/en/appendices/migration52.xml:1.7
--- phpdoc/en/appendices/migration52.xml:1.6    Tue May 22 15:07:38 2007
+++ phpdoc/en/appendices/migration52.xml        Tue May 22 15:34:06 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <appendix id="migration52">
  <title>Migrating from PHP 5.1.x to PHP 5.2.x</title>
 
@@ -538,6 +538,18 @@
   <itemizedlist>
    <listitem>
     <simpara>
+     <function>htmlentities</function>
+     - added <parameter>double_encode</parameter> in PHP 5.2.3.
+    </simpara>
+   </listitem>
+   <listitem>
+    <simpara>
+     <function>htmlspecialchars</function>
+     - added <parameter>double_encode</parameter> in PHP 5.2.3.
+    </simpara>
+   </listitem>
+   <listitem>
+    <simpara>
      <function>base64_decode</function>
      - added <parameter>strict</parameter>
     </simpara>

Reply via email to