ID: 6708
Updated by: sniper
Old-Status: Duplicate
Status: Bogus
Bug Type: *Function Specific
PHP Version: 4.0.2
Assigned To: 

submitted twice (#6707)

Previous Comments:

[2000-09-13 05:31:45] [EMAIL PROTECTED]
Regarding htmlspecialchars() function

What's going on with this function regarding the treatment of single '. I've tried 
using the optional second parameter ENT_COMPAT, and I get an error message saying 
"wrong number of parameters". This is with version 4.0.2.

If you don't use the parameter, ' gets converted to #039; . This is in contrast to 
what is shown in the online documentation.

I'm just using a simple function call:
    $str = htmlspecialchars($str);



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to