Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / editor / tests / modules / src / EditorXssFilter / Insecure.php
1 <?php
2
3 namespace Drupal\editor_test\EditorXssFilter;
4
5 use Drupal\filter\FilterFormatInterface;
6 use Drupal\editor\EditorXssFilterInterface;
7
8 /**
9  * Defines an insecure text editor XSS filter (for testing purposes).
10  */
11 class Insecure implements EditorXssFilterInterface {
12
13   /**
14    * {@inheritdoc}
15    */
16   public static function filterXss($html, FilterFormatInterface $format, FilterFormatInterface $original_format = NULL) {
17     // Don't apply any XSS filtering, just return the string we received.
18     return $html;
19   }
20
21 }