Fix #77662: htmlspecialchars does not behave as documented regarding ambiguous $flags

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346899 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2019-02-25 11:24:20 +00:00
parent e123b98532
commit b3e378b59c

View file

@ -295,7 +295,7 @@ echo $new; // <a href='test'>Test</a>
<listitem>
<simpara>
When neither of <constant>ENT_COMPAT</constant>, <constant>ENT_QUOTES</constant>,
<constant>ENT_NOQUOTES</constant> is present, the default is <constant>ENT_COMPAT</constant>.
<constant>ENT_NOQUOTES</constant> is present, the default is <constant>ENT_NOQUOTES</constant>.
</simpara>
</listitem>
<listitem>
@ -317,7 +317,7 @@ echo $new; // &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;
When more than one of <constant>ENT_HTML401</constant>, <constant>ENT_HTML5</constant>,
<constant>ENT_XHTML</constant>, <constant>ENT_XML1</constant> is present,
<constant>ENT_HTML5</constant> takes the highest precedence,
followed by <constant>ENT_XHTML</constant>, <constant>ENT_HTML401</constant>.
followed by <constant>ENT_XHTML</constant>, <constant>ENT_XML1</constant> and <constant>ENT_HTML401</constant>.
</simpara>
</listitem>
<listitem>