class Insecure in Drupal 10
Same name and namespace in other branches
- 8 core/modules/editor/tests/modules/src/EditorXssFilter/Insecure.php \Drupal\editor_test\EditorXssFilter\Insecure
- 9 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
2 string references to 'Insecure'
- ProjectRelease::isInsecure in core/
modules/ update/ src/ ProjectRelease.php - Determines if the release is insecure.
- ProjectReleaseTest::getValidData in core/
modules/ update/ tests/ src/ Unit/ ProjectReleaseTest.php - Gets valid data for a project release.
File
- core/
modules/ editor/ tests/ modules/ src/ EditorXssFilter/ Insecure.php, line 11
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:: |