diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 82ce377a42..c34c4f1617 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2368,7 +2368,7 @@ function esc_attr( $text ) { * @return string */ function esc_textarea( $text ) { - $safe_text = htmlspecialchars( $text ); + $safe_text = htmlspecialchars( $text, ENT_QUOTES ); return apply_filters( 'esc_textarea', $safe_text, $text ); }