[wp-trac] [WordPress Trac] #10874: Use esc_html() instead of htmlspecialchars() when appropriate
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 8 08:19:27 UTC 2009
#10874: Use esc_html() instead of htmlspecialchars() when appropriate
-------------------------+--------------------------------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: General | Version: 2.9
Severity: normal | Keywords: has-patch needs-testing
-------------------------+--------------------------------------------------
Comment(by hakre):
There is no general rule that says esc_html() is better then
htmlspecialchars. Using htmlspecialchars where appropriate is perfectly
valid. It has less overhead for example and does a great job as well as it
is properly tested.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10874#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list