public function HtmlTest::providerDecodeEntities in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerDecodeEntities()
 
Data provider for testDecodeEntities().
See also
testDecodeEntities()
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 246  
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function providerDecodeEntities() {
  return [
    [
      'Drupal',
      'Drupal',
    ],
    [
      '<script>',
      '<script>',
    ],
    [
      '<script>',
      '<script>',
    ],
    [
      '<script>',
      '<script>',
    ],
    [
      '&lt;script&gt;',
      '<script>',
    ],
    [
      '"',
      '"',
    ],
    [
      '"',
      '"',
    ],
    [
      '&#34;',
      '"',
    ],
    [
      '"',
      '"',
    ],
    [
      '&quot;',
      '"',
    ],
    [
      "'",
      "'",
    ],
    [
      ''',
      "'",
    ],
    [
      '&#39;',
      ''',
    ],
    [
      '©',
      '©',
    ],
    [
      '©',
      '©',
    ],
    [
      '©',
      '©',
    ],
    [
      '→',
      '→',
    ],
    [
      '→',
      '→',
    ],
    [
      '➼',
      '➼',
    ],
    [
      '➼',
      '➼',
    ],
    [
      '€',
      '€',
    ],
  ];
}