You are here

class Insecure in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/editor/tests/modules/src/EditorXssFilter/Insecure.php \Drupal\editor_test\EditorXssFilter\Insecure
  2. 10 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

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 11

Namespace

Drupal\editor_test\EditorXssFilter
View 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

Namesort descending Modifiers Type Description Overrides
Insecure::filterXss public static function Filters HTML to prevent XSS attacks when a user edits it in a text editor. Overrides EditorXssFilterInterface::filterXss