of_sanitize_allowedposttags

Sanitization of input with allowed post tags and wpautotop.

Description

of_sanitize_allowedposttags( (string) $input ); 

Allows allowed post tags in html input and ensures tags close properly.

Parameters (1)

0. $input (string)
The input.

Usage

  1. if ( !function_exists( 'of_sanitize_allowedposttags' ) ) { 
  2. require_once '/admin/includes/class-options-sanitization.php'; 
  3.  
  4. // The input. 
  5. $input = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = of_sanitize_allowedposttags($input); 
  9.  

Defined (1)

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

/admin/includes/class-options-sanitization.php  
  1. function of_sanitize_allowedposttags( $input ) { 
  2. global $allowedposttags; 
  3. $output = wpautop( wp_kses( $input, $allowedposttags) ); 
  4. return $output;