catchresponsive_sanitize_custom_css

Sanitizes Custom CSS.

Description

catchresponsive_sanitize_custom_css( $input ); 

Parameters (1)

0. $input
Entered value

Usage

  1. if ( !function_exists( 'catchresponsive_sanitize_custom_css' ) ) { 
  2. require_once '/inc/customizer-includes/catchresponsive-customizer-sanitize-functions.php'; 
  3.  
  4. // entered value 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = catchresponsive_sanitize_custom_css($input); 
  9.  

Defined (1)

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

/inc/customizer-includes/catchresponsive-customizer-sanitize-functions.php  
  1. function catchresponsive_sanitize_custom_css( $input ) { 
  2. if ( '' != $input ) { 
  3. $input = str_replace( '<=', '<=', $input ); 
  4.  
  5. $input = wp_kses_split( $input, array(), array() ); 
  6.  
  7. $input = str_replace( '>', '>', $input ); 
  8.  
  9. $input = strip_tags( $input ); 
  10.  
  11. return $input; 
  12. else { 
  13. return '';