public function StringTest::providerDecodeEntities

Data provider for testDecodeEntities().

See also

testCheckPlain()

File

drupal/core/tests/Drupal/Tests/Component/Utility/StringTest.php, line 123
Contains \Drupal\Tests\Component\Utility\StringTest.

Class

StringTest
Tests string filtering.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerDecodeEntities() {
  return array(
    array(
      'Drupal',
      'Drupal',
    ),
    array(
      '<script>',
      '<script>',
    ),
    array(
      '&lt;script&gt;',
      '<script>',
    ),
    array(
      '&#60;script&#62;',
      '<script>',
    ),
    array(
      '&amp;lt;script&amp;gt;',
      '&lt;script&gt;',
    ),
    array(
      '"',
      '"',
    ),
    array(
      '&#34;',
      '"',
    ),
    array(
      '&amp;#34;',
      '&#34;',
    ),
    array(
      '&quot;',
      '"',
    ),
    array(
      '&amp;quot;',
      '&quot;',
    ),
    array(
      "'",
      "'",
    ),
    array(
      '&#39;',
      "'",
    ),
    array(
      '&amp;#39;',
      '&#39;',
    ),
    array(
      '©',
      '©',
    ),
    array(
      '&copy;',
      '©',
    ),
    array(
      '&#169;',
      '©',
    ),
    array(
      '→',
      '→',
    ),
    array(
      '&#8594;',
      '→',
    ),
    array(
      '➼',
      '➼',
    ),
    array(
      '&#10172;',
      '➼',
    ),
    array(
      '&euro;',
      '€',
    ),
  );
}