Yoast\WP\SEO\Presenters
Abstract_Indexable_Tag_Presenter::escape() protected Yoast 1.0
Escaped the output.
{} Это метод класса: Abstract_Indexable_Tag_Presenter{}
Хуков нет.
Возвращает
Строку. The escaped value.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->escape( $value );
- $value(строка) (обязательный)
- The value.
Код Abstract_Indexable_Tag_Presenter::escape() Abstract Indexable Tag Presenter::escape Yoast 15.6.2
protected function escape( $value ) {
if ( $this->escaping === 'html' ) {
return \esc_html( $value );
}
if ( $this->escaping === 'url' ) {
return \esc_url( $value );
}
return \esc_attr( $value );
}