of_plus_sanitize_textarea

This is an example of how to override a default filter for 'textarea' sanitization and $allowedposttags + embed and script.

Description

of_plus_sanitize_textarea( $input ); 

Parameters (1)

0. $input
The input.

Usage

  1. if ( !function_exists( 'of_plus_sanitize_textarea' ) ) { 
  2. require_once '/inc/options-sanitize.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = of_plus_sanitize_textarea($input); 
  9.  

Defined (1)

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

/inc/options-sanitize.php  
  1. function of_plus_sanitize_textarea($input) { 
  2. global $allowedposttags; 
  3. $output = wp_kses( $input, $allowedposttags); 
  4. return $output;