function HtmlTest::testEscape
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testEscape()
- 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testEscape()
- 8.9.x core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testEscape()
Tests Html::escape().
@legacy-covers ::escape
Attributes
#[DataProvider('providerEscape')]
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 280
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function testEscape($expected, $text) : void {
$this->assertEquals($expected, Html::escape($text));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.