\TriTan\InterfacesEscapeInterface

Summary

Methods
Constants
html()
textarea()
url()
attr()
js()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

html()

html(string  $string) : string

Escaping for HTML blocks.

Parameters

string $string

Returns

string —

Escaped HTML block.

textarea()

textarea(string  $string) : string

Escaping for textarea.

Parameters

string $string

Returns

string —

Escaped string.

url()

url(string  $url, array  $scheme = array(), \TriTan\Interfaces\bool  $encode = false) : string

Escaping for url.

Parameters

string $url
array $scheme
\TriTan\Interfaces\bool $encode

Returns

string —

Escaped url.

attr()

attr(string  $string) : string

Escaping for HTML attributes.

Parameters

string $string

Returns

string —

Escaped HTML attribute.

js()

js(string  $string) : string

Escaping for inline javascript.

Parameters

string $string

Returns

string —

Escaped inline javascript.