#32608 [Opn->Ver]: html_entity_decode converts single quotes even if ENT_NOQUOTES is given

From: Date: Thu, 07 Apr 2005 22:14:21 +0000
Subject: #32608 [Opn->Ver]: html_entity_decode converts single quotes even if ENT_NOQUOTES is given
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76506@lists.php.net to get a copy of this message
ID: 32608 Updated by: sniper@php.net Reported By: ladislav dot prosek at matfyz dot cz -Status: Open +Status: Verified Bug Type: Strings related -Operating System: Windows XP SP2 +Operating System: * -PHP Version: 5.0.4 +PHP Version: 5CVS-2005-04-07 New Comment: Only in PHP 5 (works fine with latest PHP_4_3 checkout) Previous Comments: ------------------------------------------------------------------------ [2005-04-06 16:32:11] ladislav dot prosek at matfyz dot cz Description: ------------ html_entity_decode seems to convert single quotes (' and ') regardless of the quote_style parameter. Reproduce code: --------------- echo html_entity_decode("'", ENT_NOQUOTES); Expected result: ---------------- ' Actual result: -------------- ' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32608&edit=1

« previous php.bugs (#76506) next »