[wp-trac] Re: [WordPress Trac] #8446: post_class() outputs invalid
css class
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 11 17:47:51 GMT 2008
#8446: post_class() outputs invalid css class
----------------------+-----------------------------------------------------
Reporter: lilyfan | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.7.1
Component: Template | Version: 2.7
Severity: blocker | Resolution:
Keywords: class |
----------------------+-----------------------------------------------------
Comment (by westi):
Replying to [comment:4 lilyfan]:
>
> > Unicode is valid, so why not urldecode() then escape with
attribute_escape()
>
> attribute_escape() does NOT escape '%' sign. This solution is not good
for this problem.
> A new function to escape for css name is needed.
>
Yes but you wouldn't have any %'s as it would have been urldecoded first.
--
Ticket URL: <http://trac.wordpress.org/ticket/8446#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list