summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-05-08 15:43:34 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-05-08 15:43:34 +0000
commite911b391580bfabedb8f7cddf064ae4999ea3f16 (patch)
tree94211ad4003d9bd4005519ab713892087d6b5369 /ext
parentee86979e21589ac90925737cf0ba548e4b3fb09d (diff)
downloadphp-git-e911b391580bfabedb8f7cddf064ae4999ea3f16.tar.gz
Added "&euro;" support for htmlentities() and html_entity_decode()
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/html.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c
index 4955abf7aa..e795f01881 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -165,6 +165,10 @@ static entity_table_t ent_uni_punct[] = {
"frasl"
};
+static entity_table_t ent_uni_euro[] = {
+ "euro"
+};
+
static entity_table_t ent_uni_8465_8501[] = {
/* 8465 */
"image", NULL, NULL, NULL, NULL, NULL, NULL,
@@ -354,6 +358,7 @@ static const struct html_entity_map entity_map[] = {
{ cs_utf_8, 710, 732, ent_uni_spacing },
{ cs_utf_8, 913, 982, ent_uni_greek },
{ cs_utf_8, 8194, 8260, ent_uni_punct },
+ { cs_utf_8, 8364, 8364, ent_uni_euro },
{ cs_utf_8, 8465, 8501, ent_uni_8465_8501 },
{ cs_utf_8, 8592, 9002, ent_uni_8592_9002 },
{ cs_utf_8, 9674, 9674, ent_uni_9674 },