#33534 [Opn]: htmlentities won't encode whitespaces

From: Date: Fri, 01 Jul 2005 13:08:07 +0000
Subject: #33534 [Opn]: htmlentities won't encode whitespaces
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969368884@lists.php.net to get a copy of this message
ID: 33534 Updated by: tony2001@php.net Reported By: rt424 at hszk dot bme dot hu Status: Open -Bug Type: Output Control +Bug Type: Documentation problem Operating System: ubuntu linux PHP Version: 4.3.10 New Comment: This is expected behaviour and it should be mentioned somewhere in the docs. Reclassified as docu problem. Previous Comments: ------------------------------------------------------------------------ [2005-07-01 14:15:37] rt424 at hszk dot bme dot hu Description: ------------ Whenever I use the function htmlentities, it doesn't replace whitespace characters to ' ', although this replacement is present in the functions translation table. Reproduce code: --------------- $str = " "; $str = htmlentities($str); print "'$str'"; Expected result: ---------------- ' ' Actual result: -------------- ' ' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33534&edit=1

« previous php.doc (#969368884) next »