[wp-trac] [WordPress Trac] #33924: sanitize_html_class valid characters

WordPress Trac noreply at wordpress.org
Mon Nov 16 21:57:52 UTC 2015


#33924: sanitize_html_class valid characters
-------------------------------------+-----------------------------
 Reporter:  m-e-h                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Formatting               |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------

Comment (by peterwilsoncc):

 Replying to [comment:6 dd32]:
 > FYI this is over-escaped, it's not causing an issue, but it makes it
 harder to read.
 > This is more readable and should match the same:
 > {{{'/[\\\\#%&\',:;<=>@`~^$.!|{}()?*+"\s\[\]\/-]/'}}}

 Thanks Dion, you also highlight that I blindly copied over the `-`
 character from the source. It does not require escaping so
 [attachment:33924.diff] does not work. I'll do some further research and
 upload another file for the accept all valid characters option.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33924#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list