Elgg  Version master
Public Member Functions | Static Public Member Functions | List of all members
Elgg\Input\ValidateInputHandler Class Reference

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...
 

Detailed Description

Validates input using htmlawed.

Since
4.0

Definition at line 10 of file ValidateInputHandler.php.

Member Function Documentation

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

Parameters
\Elgg\Event$event'sanitize', 'input'
Returns
mixed

Definition at line 27 of file ValidateInputHandler.php.

static Elgg\Input\ValidateInputHandler::sanitizeStyles ( \Elgg\Event  $event)
static

Sanitizes style attribute.

This function triggers the 'allowed_styles', 'htmlawed' event

Parameters
\Elgg\Event$event'attributes', 'htmlawed'
Returns
void|array

Definition at line 87 of file ValidateInputHandler.php.


The documentation for this class was generated from the following file: