[wp-hackers] Re: [wp-svn]  trunk: new function for escaping
within attributes: attribute_escape()
nbachiyski at developer.bg
Thu Dec 21 13:27:33 GMT 2006
2006/12/21, Mark Jaquith <mark.wordpress at txfx.net>:
> On Dec 21, 2006, at 5:18 AM, Nikolay Bachiyski wrote:
> > Couldn't the function name [attribute_escape] be somehow... shorter?
> Have a suggestion?
A least attr_escape?
It is so widely used that we could even sacrifice some clarity for
convenience, here are some more suggestions:
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
More information about the wp-hackers