function HtmlTest::testDecodeEntities
Tests Html::decodeEntities().
@legacy-covers ::decodeEntities
Attributes
#[DataProvider('providerDecodeEntities')]
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 239
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.