WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/esc textarea

Description

Encodes text for use inside a <textarea> element.

Usage

<?php esc_textarea$text ); ?>

Parameters

$text
(string) (required) The text which is to be encoded.
Default: None

Return Values

(string) 
The encoded text with HTML entities.

Change Log

Since: 3.1

Source File

esc_textarea() is located in wp-includes/formatting.php.

Related

See: Data Validation article for an in-depth discussion of input and output sanitization.

See also index of Function Reference and index of Template Tags.