svn: /phpdoc/en/trunk/reference/strings/functions/ get-html-translation-table.xml
| From: | Hannes Magnusson | Date: | Fri, 10 Dec 2010 14:06:54 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ get-html-translation-table.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7505@lists.php.net to get a copy of this message | ||
bjori Fri, 10 Dec 2010 14:06:54 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306187
Log:
Document the new charset_hint parameter
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/get-html-translation-table.xml
Modified: phpdoc/en/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/get-html-translation-table.xml 2010-12-10 14:01:19
UTC (rev 306186)
+++ phpdoc/en/trunk/reference/strings/functions/get-html-translation-table.xml 2010-12-10 14:06:54
UTC (rev 306187)
@@ -12,6 +12,7 @@
<type>array</type><methodname>get_html_translation_table</methodname>
<methodparam
choice="opt"><type>int</type><parameter>table</parameter><initializer>HTML_SPECIALCHARS</initializer></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>quote_style</parameter><initializer>ENT_COMPAT</initializer></methodparam>
+ <methodparam
choice="opt"><type>string</type><parameter>charset_hint</parameter></methodparam>
</methodsynopsis>
<para>
<function>get_html_translation_table</function> will return the
@@ -56,6 +57,18 @@
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>charset_hint</parameter></term>
+ <listitem>
+ <para>
+ Like <function>htmlentities</function>, it takes an optional
+ third argument <parameter>charset</parameter> which defines character
+ set used in conversion.
+ Presently, the ISO-8859-1 character set is used as the default.
+ </para>
+ &reference.strings.charsets;
+ </listitem>
+ </varlistentry>
</variablelist>
</para>
</refsect1>
@@ -67,6 +80,30 @@
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.3.4</entry>
+ <entry>
+ The <parameter>charset_hint</parameter> parameter was added.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>