[wp-trac] [WordPress Trac] #63156: Formatting: Expand sanitize_html_class() to support the full range of CDATA that a class attribute can contain
WordPress Trac
noreply at wordpress.org
Mon Mar 24 15:10:01 UTC 2025
#63156: Formatting: Expand sanitize_html_class() to support the full range of CDATA
that a class attribute can contain
-------------------------------+------------------------------------------
Reporter: debarghyabanerjee | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: |
-------------------------------+------------------------------------------
The TODO comment in the `sanitize_html_class()` function suggests
expanding its support to include the full range of characters that a class
attribute can contain. Currently, the function only allows alphanumeric
characters, hyphens, and underscores.
However, updating the function to support a broader set of characters may
break some existing tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63156>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list