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