mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Clarify htmlspecialchars() and htmlentities().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32507 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d93fe9368f
commit
0ebe207e69
1 changed files with 9 additions and 6 deletions
|
@ -748,9 +748,9 @@ $original = strtr ($str, $trans);
|
|||
</funcsynopsis>
|
||||
<para>
|
||||
This function is identical to
|
||||
<function>Htmlspecialchars</function> in all ways, except that
|
||||
all characters which have HTML entity equivalents are translated
|
||||
into these entities.
|
||||
<function>htmlspecialchars</function> in all ways, except that
|
||||
all characters which have HTML character entity equivalents are
|
||||
translated into these entities.
|
||||
</para>
|
||||
<para>
|
||||
At present, the ISO-8859-1 character set is used.
|
||||
|
@ -780,8 +780,11 @@ $original = strtr ($str, $trans);
|
|||
<para>
|
||||
Certain characters have special significance in HTML, and should
|
||||
be represented by HTML entities if they are to preserve their
|
||||
meanings. This function returns a string with these conversions
|
||||
made.
|
||||
meanings. This function returns a string with some of these
|
||||
conversions made; the four translations made are those most
|
||||
useful for everyday web programming. If you require all HTML
|
||||
character entities to be translated, use
|
||||
<function>htmlentities</function> instead.
|
||||
</para>
|
||||
<simpara>
|
||||
This function is useful in preventing user-supplied text from
|
||||
|
@ -789,7 +792,7 @@ $original = strtr ($str, $trans);
|
|||
application.
|
||||
</simpara>
|
||||
<para>
|
||||
At present, the translations that are done are:
|
||||
The translations performed are:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
|
Loading…
Reference in a new issue