diff --git a/appendices/migration52.xml b/appendices/migration52.xml index 0554103bed..c0d27879f4 100644 --- a/appendices/migration52.xml +++ b/appendices/migration52.xml @@ -1,5 +1,5 @@ - + Migrating from PHP 5.1.x to PHP 5.2.x @@ -536,6 +536,18 @@ $obj->getCommentName(''); PHP Core: + + + htmlentities + - added double_encode in PHP 5.2.3. + + + + + htmlspecialchars + - added double_encode in PHP 5.2.3. + + base64_decode diff --git a/reference/strings/functions/htmlentities.xml b/reference/strings/functions/htmlentities.xml index 78d13598a9..0afdcfe767 100644 --- a/reference/strings/functions/htmlentities.xml +++ b/reference/strings/functions/htmlentities.xml @@ -1,5 +1,5 @@ - + @@ -15,6 +15,7 @@ stringstring intquote_style stringcharset + booldouble_encode This function is identical to @@ -53,17 +54,21 @@ - - Support for the optional quote parameter was - added in PHP 4.0.3. - Like htmlspecialchars, it takes an optional third argument charset which defines character - set used in conversion. Support for this argument was added in PHP 4.1.0. + set used in conversion. Presently, the ISO-8859-1 character set is used as the default. &reference.strings.charsets; + + When double_encode is turned off PHP will not + encode existing html entities. The default is to convert everything. + + The double_quote parameter was added in PHP 5.2.3, + charset in 4.1.0 and + quote in PHP 4.0.3. + If you're wanting to decode instead (the reverse) you can use html_entity_decode. diff --git a/reference/strings/functions/htmlspecialchars.xml b/reference/strings/functions/htmlspecialchars.xml index 5b909ee795..b701495e42 100644 --- a/reference/strings/functions/htmlspecialchars.xml +++ b/reference/strings/functions/htmlspecialchars.xml @@ -1,5 +1,5 @@ - + @@ -15,6 +15,7 @@ stringstring intquote_style stringcharset + booldouble_encode Certain characters have special significance in HTML, and should @@ -91,6 +92,11 @@ echo $new; // <a href='test'>Test</a> this third argument was added in PHP 4.1.0. &reference.strings.charsets; + + When double_encode is turned off PHP will not + encode existing html entities, the default is to convert everything. + This parameter was added in PHP 5.2.3. + See also get_html_translation_table, htmlspecialchars_decode,