Elgg
Version master
|
Validates input using htmlawed. More...
Public Member Functions | |
__invoke (\Elgg\Event $event) | |
htmLawed filtering of data More... | |
Static Public Member Functions | |
static | sanitizeStyles (\Elgg\Event $event) |
Sanitizes style attribute. More... | |
Protected Member Functions | |
htmlawed (string $value, ?array $config=null, $spec=null) | |
Filters the HTML. More... | |
Elgg\Input\ValidateInputHandler::__invoke | ( | \Elgg\Event | $event | ) |
htmLawed filtering of data
Called on the 'sanitize', 'input' event
htmLawed's $config argument is filtered by the [config, htmlawed] event. htmLawed's $spec argument is filtered by the [spec, htmlawed] event.
For information on these arguments, see http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/htmLawed_README.htm#s2.2
\Elgg\Event | $event | 'sanitize', 'input' |
Definition at line 27 of file ValidateInputHandler.php.
|
protected |
Filters the HTML.
string | $value | HTML |
array | null | $config | configuration option. |
mixed | $spec | specification option. |
Definition at line 89 of file ValidateInputHandler.php.
|
static |
Sanitizes style attribute.
This function triggers the 'allowed_styles', 'htmlawed' event
\Elgg\Event | $event | 'attributes', 'htmlawed' |
Definition at line 131 of file ValidateInputHandler.php.