function HtmlTest::providerEscape
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerEscape()
- 8.9.x core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerEscape()
- 11.x 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 293
Class
Namespace
Drupal\Tests\Component\UtilityCode
public static function providerEscape() {
return [
[
'Drupal',
'Drupal',
],
[
'<script>',
'<script>',
],
[
'&lt;script&gt;',
'<script>',
],
[
'&#34;',
'"',
],
[
'"',
'"',
],
[
'&quot;',
'"',
],
[
''',
"'",
],
[
'&#039;',
''',
],
[
'©',
'©',
],
[
'→',
'→',
],
[
'➼',
'➼',
],
[
'€',
'€',
],
// cspell:disable-next-line
[
'Drup�al',
"Drup\x80al",
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.