Changeset 58471 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 06/24/2024 02:40:47 PM (20 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r58409 r58471 4791 4791 * 4792 4792 * @since 2.5.0 4793 * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements). 4793 4794 * 4794 4795 * @param string $tag_name … … 4796 4797 */ 4797 4798 function tag_escape( $tag_name ) { 4798 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9 _:]/', '', $tag_name ) );4799 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9-_:]/', '', $tag_name ) ); 4799 4800 /** 4800 4801 * Filters a string cleaned and escaped for output as an HTML tag.
Note: See TracChangeset
for help on using the changeset viewer.