You are here

public function HtmlTest::providerEscape 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::providerEscape()

Data provider for testEscape().

See also

testEscape()

File

core/tests/Drupal/Tests/Component/Utility/HtmlTest.php, line 279
Contains \Drupal\Tests\Component\Utility\HtmlTest.

Class

HtmlTest
Tests \Drupal\Component\Utility\Html.

Namespace

Drupal\Tests\Component\Utility

Code

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