note 45622 added to function.html-entity-decode

From: Date: Mon, 13 Sep 2004 08:41:55 +0000
Subject: note 45622 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-76601@lists.php.net to get a copy of this message
The html_entity_decode function submitted by dave at codexweb dot co dot za for PHP < 4.3.0 users doesn't handle the simple quote correctly. The following line $trans_tbl["&apos;"] = "'"; should be replaced by $trans_tbl["&039;"] = "'"; ---- Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45622 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45622&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45622&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76601) next »