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