svn: /phpdoc/en/trunk/reference/strings/functions/ htmlspecialchars.xml
| From: | Christoph Michael Becker | Date: | Sat, 25 Jun 2016 23:35:39 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ htmlspecialchars.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14255@lists.php.net to get a copy of this message | ||
cmb Sat, 25 Jun 2016 23:35:39 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339499
Log:
Address #67811: htmlspecialchars: document why/when apos instead of #39 is used
Bugs: https://bugs.php.net/67811 (Open) htmlspecialchars:
document why/when apos instead of #39 is used
https://bugs.php.net/39 (Closed) Stronghold crashes when
secure pages served
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 2016-06-25 23:08:19 UTC (rev
339498)
+++ phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml 2016-06-25 23:35:39 UTC (rev
339499)
@@ -35,35 +35,43 @@
</para>
<para>
The translations performed are:
- <itemizedlist>
- <listitem>
- <simpara>
- '&' (ampersand) becomes '&amp;'
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- '"' (double quote) becomes '&quot;' when
<constant>ENT_NOQUOTES</constant>
- is not set.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- "'" (single quote) becomes '&#039;' (or
&apos;)
- only when <constant>ENT_QUOTES</constant> is set.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- '<' (less than) becomes '&lt;'
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- '>' (greater than) becomes '&gt;'
- </simpara>
- </listitem>
- </itemizedlist>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Character</entry>
+ <entry>Replacement</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>'&' (ampersand)</entry>
+ <entry>'&amp;'</entry>
+ </row>
+ <row>
+ <entry>'"' (double quote)</entry>
+ <entry>'&quot;' when
<constant>ENT_NOQUOTES</constant></entry>
+ </row>
+ <row>
+ <entry>"'" (single quote)</entry>
+ <entry>
+ '&#039;' (for <constant>ENT_HTML401</constant>) or
&apos; (for
+ <constant>ENT_XML1</constant>, <constant>ENT_XHTML</constant> or
+ <constant>ENT_HTML5</constant>), but only when
+ <constant>ENT_QUOTES</constant> is set
+ </entry>
+ </row>
+ <row>
+ <entry>'<' (less than)</entry>
+ <entry>'&lt;'</entry>
+ </row>
+ <row>
+ <entry>'>' (greater than)</entry>
+ <entry>'&gt;'</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
</para>
</refsect1>