]> granicus.if.org Git - php/commitdiff
Added "€" support for htmlentities() and html_entity_decode()
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 8 May 2003 15:43:34 +0000 (15:43 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 8 May 2003 15:43:34 +0000 (15:43 +0000)
ext/standard/html.c

index 4955abf7aa93ad0707440ae96fac45c5992e92ad..e795f018819875fc7c0ccc83434914f87013eaa9 100644 (file)
@@ -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 },