wp_pre_kses_less_than( string $content ): string

Converts lone less than signs.


Description

KSES already converts lone greater than signs.


Top ↑

Parameters

$content 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( $content ) {
	return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $content );
}


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.