Changeset 58481 for branches/6.0/src/wp-includes/formatting.php
- Timestamp:
- 06/24/2024 03:17:32 PM (20 months ago)
- File:
-
- 1 edited
-
branches/6.0/src/wp-includes/formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/wp-includes/formatting.php
r55773 r58481 4697 4697 * 4698 4698 * @since 2.5.0 4699 * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements). 4699 4700 * 4700 4701 * @param string $tag_name … … 4702 4703 */ 4703 4704 function tag_escape( $tag_name ) { 4704 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9 _:]/', '', $tag_name ) );4705 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9-_:]/', '', $tag_name ) ); 4705 4706 /** 4706 4707 * Filters a string cleaned and escaped for output as an HTML tag.
Note: See TracChangeset
for help on using the changeset viewer.