You are here

public function HtmlEntityDecodeTest::testHtmlEntityDecode in Tamper 8

Test HTML entity decode.

File

tests/src/Unit/Plugin/Tamper/HtmlEntityDecodeTest.php, line 26

Class

HtmlEntityDecodeTest
Tests the html entity decode plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function testHtmlEntityDecode() {
  $this
    ->assertEquals('<html>asdfsadfasf<b>asfasf</b></html>', $this->plugin
    ->tamper('&lt;html&gt;asdfsadfasf&lt;b&gt;asfasf&lt;/b&gt;&lt;/html&gt;'));
}