From 0ebe207e69d7a5a9f304cd0606eec1e0d2093556 Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Mon, 11 Sep 2000 19:33:48 +0000 Subject: [PATCH] Clarify htmlspecialchars() and htmlentities(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32507 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/functions/strings.xml b/functions/strings.xml index e66a0c8eba..d8f1b65f3b 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -748,9 +748,9 @@ $original = strtr ($str, $trans); This function is identical to - Htmlspecialchars in all ways, except that - all characters which have HTML entity equivalents are translated - into these entities. + htmlspecialchars in all ways, except that + all characters which have HTML character entity equivalents are + translated into these entities. At present, the ISO-8859-1 character set is used. @@ -780,8 +780,11 @@ $original = strtr ($str, $trans); 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 + htmlentities instead. This function is useful in preventing user-supplied text from @@ -789,7 +792,7 @@ $original = strtr ($str, $trans); application. - At present, the translations that are done are: + The translations performed are: