You are here

public function HtmlTest::providerEscape in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerEscape()

Data provider for testEscape().

See also

testEscape()

File

core/tests/Drupal/Tests/Component/Utility/HtmlTest.php, line 283

Class

HtmlTest
Tests \Drupal\Component\Utility\Html.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerEscape() {
  return [
    [
      'Drupal',
      'Drupal',
    ],
    [
      '<script>',
      '<script>',
    ],
    [
      '&amp;lt;script&amp;gt;',
      '&lt;script&gt;',
    ],
    [
      '&amp;#34;',
      '&#34;',
    ],
    [
      '&quot;',
      '"',
    ],
    [
      '&amp;quot;',
      '&quot;',
    ],
    [
      '&#039;',
      "'",
    ],
    [
      '&amp;#039;',
      '&#039;',
    ],
    [
      '©',
      '©',
    ],
    [
      '→',
      '→',
    ],
    [
      '➼',
      '➼',
    ],
    [
      '€',
      '€',
    ],
    [
      'Drup�al',
      "",
    ],
  ];
}