public function test_invalid_tags_should_be_removed_from_html_content() { $message = '<b>hello world</b><iframe src="https://example.com"></iframe><b>hello world</b>'; $email = new BP_Email('activity-at-message'); $email->set_content_html($message); $email->set_content_type('html'); $this->assertSame('<b>hello world</b><b>hello world</b>', $email->get_content()); }