wp_pre_kses_less_than

Convert lone less than signs.

Description

(string) wp_pre_kses_less_than( (string) $text ); 

KSES already converts lone greater than signs.

Returns (string)

Converted text.

Parameters (1)

0. $text (string)
Text to be converted.

Usage

  1. if ( !function_exists( 'wp_pre_kses_less_than' ) ) { 
  2. require_once ABSPATH . WPINC . '/formatting.php'; 
  3.  
  4. // Text to be converted. 
  5. $text = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_pre_kses_less_than($text); 
  9.  

Defined (1)

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

/wp-includes/formatting.php  
  1. function wp_pre_kses_less_than( $text ) { 
  2. return preg_replace_callback('%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text);