Insecure.php
Same filename in other branches
Namespace
Drupal\editor_test\EditorXssFilterFile
-
core/
modules/ editor/ tests/ modules/ editor_test/ src/ EditorXssFilter/ Insecure.php
View source
<?php
declare (strict_types=1);
namespace Drupal\editor_test\EditorXssFilter;
use Drupal\filter\FilterFormatInterface;
use Drupal\editor\EditorXssFilterInterface;
/**
* Defines an insecure text editor XSS filter (for testing purposes).
*/
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;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
Insecure | Defines an insecure text editor XSS filter (for testing purposes). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.