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