wp_pre_kses_less_than( string $text )

Convert lone less than signs.


Description Description

KSES already converts lone greater than signs.


Top ↑

Parameters Parameters

$text

(string) (Required) Text to be converted.


Top ↑

Return Return

(string) Converted text.


Top ↑

Source Source

File: wp-includes/formatting.php

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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