ID:               15535
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Assigned
+Status:           Closed
 Bug Type:         Feature/Change Request
 Operating System: Win2000
 PHP Version:      4.1.1
 Assigned To:      wez
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2002-02-13 06:51:01] [EMAIL PROTECTED]

I will look into it.
I'm not sure about the name though.
html_entity_decode($string) ?
--Wez.

------------------------------------------------------------------------

[2002-02-13 05:35:24] [EMAIL PROTECTED]

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

Reply via email to