function setup()
 {
     parent::setup();
     // there is no AutoFormat.SafeObject directive
     $this->config->set('AutoFormat.Custom', array(new HTMLPurifier_Injector_SafeObject()));
     $this->config->set('HTML.Trusted', true);
 }
示例#2
0
 public function setup()
 {
     parent::setup();
     $this->config->set('AutoFormat.AutoParagraph', true);
 }
 function setup()
 {
     parent::setup();
     $this->config->set('AutoFormat', 'PurifierLinkify', true);
     $this->config->set('AutoFormatParam', 'PurifierLinkifyDocURL', '#%s');
 }
 function setup()
 {
     parent::setup();
     $this->config->set('AutoFormat.DisplayLinkURI', true);
 }
示例#5
0
 public function setup()
 {
     parent::setup();
     $this->config->set('AutoFormat.RemoveEmpty', true);
 }
示例#6
0
 function setup()
 {
     parent::setup();
     $this->config->set('AutoFormat.Linkify', true);
 }
 function setup()
 {
     parent::setup();
     $this->config->set('HTML.Allowed', 'span[class],div,p,strong,em');
     $this->config->set('AutoFormat.RemoveSpansWithoutAttributes', true);
 }
示例#8
0
 public function setup()
 {
     parent::setup();
     $this->config->set('AutoFormat.PurifierLinkify', true);
     $this->config->set('AutoFormat.PurifierLinkify.DocURL', '#%s');
 }