wp_pre_kses_less_than( string $text ): string

Converts lone less than signs.


Description

KSES already converts lone greater than signs.


Top ↑

Parameters

$text string Required
Text to be converted.

Top ↑

Return

string Converted text.


Top ↑

Source

File: wp-includes/formatting.php. View all references

function wp_pre_kses_less_than( $text ) {
	return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text );
}


Top ↑

Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.