Changeset 58483 for branches/5.9/src/wp-includes/formatting.php
- Timestamp:
- 06/24/2024 03:23:25 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9/src/wp-includes/formatting.php
r55774 r58483 4685 4685 * 4686 4686 * @since 2.5.0 4687 * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements). 4687 4688 * 4688 4689 * @param string $tag_name … … 4690 4691 */ 4691 4692 function tag_escape( $tag_name ) { 4692 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9 _:]/', '', $tag_name ) );4693 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9-_:]/', '', $tag_name ) ); 4693 4694 /** 4694 4695 * Filters a string cleaned and escaped for output as an HTML tag.
Note: See TracChangeset
for help on using the changeset viewer.