. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Services; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(HtmlService::class)] class HtmlServiceTest extends TestCase { public function testAllowedHtml(): void { $html_service = new HtmlService(); $dirty = '
bar
'; $clean = $html_service->sanitize($dirty); self::assertSame($dirty, $clean); } public function testDisallowedHtml(): void { $html_service = new HtmlService(); $dirty = '
bar
'; $clean = $html_service->sanitize($dirty); self::assertSame('
bar
', $clean); } }