Bug #15535 Updated: Un-HTML-Entities

From: Date: Wed, 17 Apr 2002 05:08:05 +0000
Subject: Bug #15535 Updated: Un-HTML-Entities
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5156@lists.php.net to get a copy of this message
ID: 15535 Updated by: klonx@gmx.net Reported By: klonx@gmx.net -Status: Closed +Status: Open Bug Type: Feature/Change Request Operating System: Win2000 PHP Version: 4.1.1 New Comment: Sorry i didn't know where to post first, My Comment is ^above^ ! Previous Comments: ------------------------------------------------------------------------ [2002-04-17 01:02:06] klonx@gmx.net I didn't get what i want with Derick's idea. My original String was: Schlenger & Meilhamer and after the procedure with: $trans = get_html_translation_table(HTML_ENTITIES); $str = "Schlenger & Meilhamer"; echo strtr($str, $trans); This is what i get: Schlenger & Meilhamer what i wanted to get: Schlenger & Meilhamer So, This does not work like i want it to. Regards, Maximilian ------------------------------------------------------------------------ [2002-02-13 06:54:47] derick@php.net I'm closing this, because you can do this: $trans = get_html_translation_table(HTML_ENTITIES); $str = "Hallo & <Frau> & Krämer" $original = strtr($str, $trans); IMO, this does not warrant a new function. See also: http://www.php.net/manual/en/function.get-html-translation-table.php Derick ------------------------------------------------------------------------ [2002-02-13 06:51:01] wez@php.net I will look into it. I'm not sure about the name though. html_entity_decode($string) ? --Wez. ------------------------------------------------------------------------ [2002-02-13 05:35:24] klonx@gmx.net Hello PHP-Team, Some People wrote about that already, and they submitted some kind of work-arounds. My Feature-Request is about the function "htmlentities()" and "htmlspecialchars()" Well, i think a lot of people would appreciate if you would integrate functions like "UNhtmlentities" and "UNhtmlspecialchars" which would convert 'htmlspecialcharacterized' strings back to their original values. Regards, Maximilian ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15535&edit=1

« previous php.bugs (#5156) next »