From 5c5a83727ab20878752418ca74f5686d46d5b27d Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 24 Jan 2007 11:08:02 +0000 Subject: [PATCH] fix #40155: fix example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228031 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/html-entity-decode.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/strings/functions/html-entity-decode.xml b/reference/strings/functions/html-entity-decode.xml index 1f789e83d9..d8e2e62528 100644 --- a/reference/strings/functions/html-entity-decode.xml +++ b/reference/strings/functions/html-entity-decode.xml @@ -1,5 +1,5 @@ - + @@ -85,7 +85,7 @@ function unhtmlentities($string) { // replace numeric entities $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string); - $string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string); + $string = preg_replace('~&#([0-9]+);~e', 'chr("\\1")', $string); // replace literal entities $trans_tbl = get_html_translation_table(HTML_ENTITIES); $trans_tbl = array_flip($trans_tbl);