function HtmlTest::testDecodeEntities
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testDecodeEntities()
- 8.9.x core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testDecodeEntities()
- 10 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testDecodeEntities()
Tests Html::decodeEntities().
@dataProvider providerDecodeEntities @covers ::decodeEntities
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 240
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function testDecodeEntities($text, $expected) : void {
$this->assertEquals($expected, Html::decodeEntities($text));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.