Changeset 58474 for branches/6.5/src/wp-includes/formatting.php
- Timestamp:
- 06/24/2024 03:02:41 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.5/src/wp-includes/formatting.php
r57626 r58474 4803 4803 * 4804 4804 * @since 2.5.0 4805 * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements). 4805 4806 * 4806 4807 * @param string $tag_name … … 4808 4809 */ 4809 4810 function tag_escape( $tag_name ) { 4810 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9 _:]/', '', $tag_name ) );4811 $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9-_:]/', '', $tag_name ) ); 4811 4812 /** 4812 4813 * Filters a string cleaned and escaped for output as an HTML tag.
Note: See TracChangeset
for help on using the changeset viewer.