acf_esc_html()
Sanitizes text content and strips out disallowed HTML.
This function emulates wp_kses_post() a context of "acf" for extensibility.
Хуков нет.
Возвращает
Строку|false.
Использование
acf_esc_html( $string );
- $string(строка)
- The string to be escaped.
По умолчанию:''
Список изменений
| С версии 5.9.6 | Введена. |
Код acf_esc_html() acf esc html ACF 6.4.2
function acf_esc_html( $string = '' ) {
if ( ! is_scalar( $string ) ) {
return false;
}
return wp_kses( (string) $string, 'acf' );
}