WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/esc textarea

Contents

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.