What's the best way to do this? I want to use htmlspecialchars on a
variable, keep the middle two parameters using the php defaults and
change the default setting on the last parameter.

This is what I have been doing:

htmlspecialchars($variable, null, null, false);

But I've just found that this screws up when trying to encode double
quotes (for some reason).

Can anyone suggest a better way?

Nick
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to