/**
  * Clean markup
  *
  * @param string $markup
  * @param string $config
  * @return string
  */
 public function clean($markup, $config = null)
 {
     if (empty($config) && !empty($this->_config['config'])) {
         $config = $this->config('config');
     }
     return Purifier::clean($markup, $config);
 }
 /**
  * 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']);
 }