Changeset 58476 for branches/6.3/src/wp-includes/formatting.php
- Timestamp:
- 06/24/2024 03:10:50 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3/src/wp-includes/formatting.php
r56244 r58476 4786 4786 * 4787 4787 * @since 2.5.0 4788 * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements). 4788 4789 * 4789 4790 * @param string $tag_name … … 4791 4792 */ 4792 4793 function tag_escape( $tag_name ) { 4793 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9 _:]/', '', $tag_name ) );4794 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9-_:]/', '', $tag_name ) ); 4794 4795 /** 4795 4796 * Filters a string cleaned and escaped for output as an HTML tag.
Note: See TracChangeset
for help on using the changeset viewer.