onOffice WP Plugin

Escape
in package

Table of Contents

ATTR  = 'attr'
HTML  = 'html'
JS  = 'js'
TEXTAREA  = 'textarea'
URL  = 'url'
$_callbacks  : array<string|int, mixed>
getCallbackByEscaping()  : string

Constants

TEXTAREA

public mixed TEXTAREA = 'textarea'

Properties

$_callbacks

private static array<string|int, mixed> $_callbacks = array(self::HTML => 'esc_html', self::JS => 'esc_js', self::URL => 'esc_url', self::TEXTAREA => 'esc_textarea', self::ATTR => 'esc_attr')

Methods

getCallbackByEscaping()

public static getCallbackByEscaping(string $escaping) : string
Parameters
$escaping : string
Return values
string

Search results