Bring in forgotton tag_escape. Fixes #6368.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-03-24 05:15:28 +00:00
parent 193b20c03f
commit f868d87004
1 changed files with 7 additions and 0 deletions

View File

@ -1182,6 +1182,13 @@ function attribute_escape($text) {
$safe_text = wp_specialchars($text, true);
return apply_filters('attribute_escape', $safe_text, $text);
}
// Escape a HTML tag name
function tag_escape($tag_name) {
$safe_tag = strtolower( preg_replace('[^a-zA-Z_:]', '', $tag_name) );
return apply_filters('tag_escape', $safe_tag, $tag_name);
}
/**
* Escapes text for SQL LIKE special characters % and _
*