public function HtmlTest::providerEscape in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Drupal\Tests\Component\UtilityCode
public function providerEscape() {
return array(
array(
'Drupal',
'Drupal',
),
array(
'<script>',
'<script>',
),
array(
'&lt;script&gt;',
'<script>',
),
array(
'&#34;',
'"',
),
array(
'"',
'"',
),
array(
'&quot;',
'"',
),
array(
''',
"'",
),
array(
'&#039;',
''',
),
array(
'©',
'©',
),
array(
'→',
'→',
),
array(
'➼',
'➼',
),
array(
'€',
'€',
),
array(
'Drup�al',
"",
),
);
}