function HtmlTest::providerEscape
Data provider for testEscape().
See also
testEscape()
File
- 
              core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 293  
Class
Namespace
Drupal\Tests\Component\UtilityCode
public static function providerEscape() {
  return [
    [
      'Drupal',
      'Drupal',
    ],
    [
      '<script>',
      '<script>',
    ],
    [
      '&lt;script&gt;',
      '<script>',
    ],
    [
      '&#34;',
      '"',
    ],
    [
      '"',
      '"',
    ],
    [
      '&quot;',
      '"',
    ],
    [
      ''',
      "'",
    ],
    [
      '&#039;',
      ''',
    ],
    [
      '©',
      '©',
    ],
    [
      '→',
      '→',
    ],
    [
      '➼',
      '➼',
    ],
    [
      '€',
      '€',
    ],
    // cspell:disable-next-line
[
      'Drup�al',
      "Drup\x80al",
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.