WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2010 05:12:01 PM (11 years ago)
Author:
markjaquith
Message:

esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r16409 r16431  
    23542354
    23552355/**
     2356 * Escaping for textarea values.
     2357 *
     2358 * @since 3.1
     2359 *
     2360 * @param string $text
     2361 * @return string
     2362 */
     2363function esc_textarea( $text ) {
     2364    $safe_text = htmlspecialchars( $text );
     2365    return apply_filters( 'esc_textarea', $safe_text, $text );
     2366}
     2367
     2368/**
    23562369 * Escape a HTML tag name.
    23572370 *
Note: See TracChangeset for help on using the changeset viewer.