[wp-hackers] Re: [wp-svn] [4656] trunk: new function for escaping within attributes: attribute_escape()

Mark Jaquith mark.wordpress at txfx.net
Thu Dec 21 10:56:47 GMT 2006


On Dec 21, 2006, at 5:18 AM, Nikolay Bachiyski wrote:

> Couldn't the funcion name be somehow... shorter?

Have a suggestion?  It's only one character longer than  
wp_specialchars and we're saving a few characters because this  
doesn't require a second param to be passed.  It'll probably be used  
more consistently if its purpose is obvious and its name easy to  
remember.  I also modeled it after js_escape() which is a sibling  
function (special purpose escaper).

--
Mark Jaquith
http://markjaquith.com/

Covered Web Services
http://covered.be/




More information about the wp-hackers mailing list