class Insecure in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/editor/tests/modules/src/EditorXssFilter/Insecure.php \Drupal\editor_test\EditorXssFilter\Insecure
Defines an insecure text editor XSS filter (for testing purposes).
Hierarchy
- class \Drupal\editor_test\EditorXssFilter\Insecure implements EditorXssFilterInterface
Expanded class hierarchy of Insecure
1 string reference to 'Insecure'
- update_calculate_project_update_status in core/
modules/ update/ update.compare.inc - Calculates the current update status of a specific project.
File
- core/
modules/ editor/ tests/ modules/ src/ EditorXssFilter/ Insecure.php, line 16 - Contains \Drupal\editor_test\EditorXssFilter\Insecure.
Namespace
Drupal\editor_test\EditorXssFilterView source
class Insecure implements EditorXssFilterInterface {
/**
* {@inheritdoc}
*/
public static function filterXss($html, FilterFormatInterface $format, FilterFormatInterface $original_format = NULL) {
// Don't apply any XSS filtering, just return the string we received.
return $html;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Insecure:: |
public static | function |
Filters HTML to prevent XSS attacks when a user edits it in a text editor. Overrides EditorXssFilterInterface:: |