sanitize_textarea_field

Sanitizes a multiline string from user input or from the database.

Description

sanitize_textarea_field( $str ); 

Parameters (1)

0. $str
The str.

Usage

  1. if ( !function_exists( 'sanitize_textarea_field' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/admin/settings/settings-api.php'; 
  3.  
  4. // The str. 
  5. $str = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = sanitize_textarea_field($str); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/admin/settings/settings-api.php  
  1. function sanitize_textarea_field( $str ) { 
  2. $filtered = _sanitize_text_fields( $str, true ); 
  3. return apply_filters( 'sanitize_textarea_field', $filtered, $str );