/** * setUp method * * @return void */ public function setUp() { parent::setUp(); $this->View = new View(); $this->Purifier = new HtmlPurifierHelper($this->View); Purifier::config('default', ['HTML.AllowedElements' => 'a, em, blockquote, p, strong, pre, code, span,ul,ol,li,img', 'HTML.AllowedAttributes' => 'a.href, a.title, img.src, img.alt, *.style', 'CSS.AllowedProperties' => 'text-decoration', 'HTML.TidyLevel' => 'heavy', 'HTML.Doctype' => 'XHTML 1.0 Transitional']); }