Insecure.php

Same filename and directory in other branches
  1. 9 core/modules/editor/tests/modules/editor_test/src/EditorXssFilter/Insecure.php
  2. 8.9.x core/modules/editor/tests/modules/src/EditorXssFilter/Insecure.php
  3. 11.x core/modules/editor/tests/modules/editor_test/src/EditorXssFilter/Insecure.php

Namespace

Drupal\editor_test\EditorXssFilter

File

core/modules/editor/tests/modules/editor_test/src/EditorXssFilter/Insecure.php

View source
<?php

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.