You are here

public function HtmlTest::providerDecodeEntities in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 238
Contains \Drupal\Tests\Component\Utility\HtmlTest.

Class

HtmlTest
Tests \Drupal\Component\Utility\Html.

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;',
      '€',
    ),
  );
}