You are here

public static function BlazyInterface::sanitize in Blazy 7

Returns the sanitized attributes common for user-defined ones.

When IMG and IFRAME are allowed for untrusted users, trojan horses are welcome. Hence sanitize attributes relevant for BlazyFilter. The rest should be taken care of by HTML filters after Blazy.

Parameters

array $attributes: The given attributes to sanitize.

Return value

array The sanitized $attributes suitable for UGC, such as Blazy filter.

File

src/BlazyInterface.php, line 56

Class

BlazyInterface
Defines re-usable services and functions for blazy plugins.

Namespace

Drupal\blazy

Code

public static function sanitize(array $attributes = []);