NYCPHP Meetup

NYPHP.org

[nycphp-talk] htmlspecialchars: ENT_COMPAT or ENT_QUOTES

Michael B Allen ioplex at gmail.com
Sat Feb 9 15:16:57 EST 2008


Hi,

What is the most appropriate quote_style value to use with htmlspecialchars?

For some reason I've always used ENT_QUOTES for everthing. But now I
have some code that automatically escapes element attributes and
ENT_QUOTES is creating a little bit if an issue with JavaScript.

Is there any way to get into trouble with htmlspecialchars?

Are there pitfalls to using ENT_COMPAT?

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/



More information about the talk mailing list