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