acf_esc_html()ACF 5.9.6

Sanitizes text content and strips out disallowed HTML.

This function emulates wp_kses_post() a context of "acf" for extensibility.

No Hooks.

Returns

String.

Usage

acf_esc_html( $string );
$string(string)
.
Default: ''

Changelog

Since 5.9.6 Introduced.

acf_esc_html() code ACF 6.0.4

function acf_esc_html( $string = '' ) {
	return wp_kses( (string) $string, 'acf' );
}