Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Created February 2, 2012 14:21
Show Gist options
  • Save mikedfunk/1723681 to your computer and use it in GitHub Desktop.
Save mikedfunk/1723681 to your computer and use it in GitHub Desktop.

Revisions

  1. mikedfunk revised this gist Feb 15, 2012. No changes.
  2. mikedfunk revised this gist Feb 15, 2012. No changes.
  3. mikedfunk created this gist Feb 2, 2012.
    5 changes: 5 additions & 0 deletions gistfile1.aw
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    // html purifier
    require_once $this->fcpath.$this->apppath.'libraries/htmlpurifier/library/HTMLPurifier.auto.php';
    $this->ci->htmlpurifier = new HTMLPurifier();
    $config = HTMLPurifier_Config::createDefault();
    $this->html = $this->ci->htmlpurifier->purify($this->html, $config);