Changeset 58479 for branches/6.2/src/wp-includes/formatting.php
- Timestamp:
- 06/24/2024 03:13:02 PM (21 months ago)
- File:
-
- 1 edited
-
branches/6.2/src/wp-includes/formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.2/src/wp-includes/formatting.php
r55765 r58479 4721 4721 * 4722 4722 * @since 2.5.0 4723 * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements). 4723 4724 * 4724 4725 * @param string $tag_name … … 4726 4727 */ 4727 4728 function tag_escape( $tag_name ) { 4728 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9 _:]/', '', $tag_name ) );4729 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9-_:]/', '', $tag_name ) ); 4729 4730 /** 4730 4731 * Filters a string cleaned and escaped for output as an HTML tag.
Note: See TracChangeset
for help on using the changeset viewer.