mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@16431 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2352,6 +2352,19 @@ function esc_attr( $text ) {
|
||||
return apply_filters( 'attribute_escape', $safe_text, $text );
|
||||
}
|
||||
|
||||
/**
|
||||
* Escaping for textarea values.
|
||||
*
|
||||
* @since 3.1
|
||||
*
|
||||
* @param string $text
|
||||
* @return string
|
||||
*/
|
||||
function esc_textarea( $text ) {
|
||||
$safe_text = htmlspecialchars( $text );
|
||||
return apply_filters( 'esc_textarea', $safe_text, $text );
|
||||
}
|
||||
|
||||
/**
|
||||
* Escape a HTML tag name.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user