public function HtmlTest::providerDecodeEntities in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerDecodeEntities()
- 10 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerDecodeEntities()
Data provider for testDecodeEntities().
See also
testDecodeEntities()
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 242
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function providerDecodeEntities() {
return [
[
'Drupal',
'Drupal',
],
[
'<script>',
'<script>',
],
[
'<script>',
'<script>',
],
[
'<script>',
'<script>',
],
[
'&lt;script&gt;',
'<script>',
],
[
'"',
'"',
],
[
'"',
'"',
],
[
'&#34;',
'"',
],
[
'"',
'"',
],
[
'&quot;',
'"',
],
[
"'",
"'",
],
[
''',
"'",
],
[
'&#39;',
''',
],
[
'©',
'©',
],
[
'©',
'©',
],
[
'©',
'©',
],
[
'→',
'→',
],
[
'→',
'→',
],
[
'➼',
'➼',
],
[
'➼',
'➼',
],
[
'€',
'€',
],
];
}