From de8016e755410e981b23daaf71ac0ba0ab7f7f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Andr=C3=A9=20dos=20Santos=20Lopes?= Date: Tue, 13 Mar 2012 14:39:01 +0000 Subject: [PATCH] - Improved documentation of ENT_DISALLOWED. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324188 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/htmlentities.xml | 7 +++++-- reference/strings/functions/htmlspecialchars.xml | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/reference/strings/functions/htmlentities.xml b/reference/strings/functions/htmlentities.xml index 57f1c34468..298689a0ac 100644 --- a/reference/strings/functions/htmlentities.xml +++ b/reference/strings/functions/htmlentities.xml @@ -78,8 +78,11 @@ ENT_SUBSTITUTE - Replace invalid code unit sequences with a Unicode Replacement Character - U+FFFD (UTF-8) or &#FFFD; (otherwise) instead of returning an empty string. + Replace invalid code points for the given document type with a + Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; + (otherwise) instead of returning an empty string. This may be + useful, for instance, to ensure the well-formedness of XML documents + with embedded external content. diff --git a/reference/strings/functions/htmlspecialchars.xml b/reference/strings/functions/htmlspecialchars.xml index 095c53faeb..3464e8520a 100644 --- a/reference/strings/functions/htmlspecialchars.xml +++ b/reference/strings/functions/htmlspecialchars.xml @@ -122,8 +122,10 @@ ENT_DISALLOWED - Replace code unit sequences, which are invalid in the specified document type, - with a Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; (otherwise). + Replace invalid code points for the given document type with a + Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; + (otherwise) instead of returning an empty string. This may be + useful, for instance, to ensure the well-formedness of XML documents with embedded external content.