WordPress.org

Make WordPress Core

Changeset 7497


Ignore:
Timestamp:
03/24/08 05:15:28 (6 years ago)
Author:
matt
Message:

Bring in forgotton tag_escape. Fixes #6368.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r7452 r7497  
    11831183    return apply_filters('attribute_escape', $safe_text, $text); 
    11841184} 
     1185 
     1186// Escape a HTML tag name 
     1187function tag_escape($tag_name) { 
     1188    $safe_tag = strtolower( preg_replace('[^a-zA-Z_:]', '', $tag_name) ); 
     1189    return apply_filters('tag_escape', $safe_tag, $tag_name); 
     1190} 
     1191 
    11851192/** 
    11861193 * Escapes text for SQL LIKE special characters % and _ 
Note: See TracChangeset for help on using the changeset viewer.