sanitizer = $this->diContainer->get(NewsletterHtmlSanitizer::class); } public function testItKeepsAllowedTags() { verify($this->sanitizer->sanitize(''))->equals(''); verify($this->sanitizer->sanitize('Style'))->equals('Style'); verify($this->sanitizer->sanitize('Class'))->equals('Class'); verify($this->sanitizer->sanitize('
Some text
'))->equals('Some text
'); verify($this->sanitizer->sanitize('Text 👋 around'))->equals('Text 👋 around'); verify($this->sanitizer->sanitize('StrongEmHead |
---|
Cell |
Head |
---|
Cell |