You are here

protected property EntityFilteringThemeTest::$xssLabel in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Theme/EntityFilteringThemeTest.php \Drupal\Tests\system\Functional\Theme\EntityFilteringThemeTest::xssLabel

A string containing markup and JS.

Type: string

File

core/modules/system/tests/src/Functional/Theme/EntityFilteringThemeTest.php, line 82

Class

EntityFilteringThemeTest
Tests themed output for each entity type in all available themes to ensure entity labels are filtered for XSS.

Namespace

Drupal\Tests\system\Functional\Theme

Code

protected $xssLabel = "string with <em>HTML</em> and <script>alert('JS');</script>";