Skip to content

eljakeo/codeigniter-htmlpurifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Codeigniter HTMLPurifier Helper

  • Purify input using the HTMLPurifier standalone class.
  • Easily use multiple purifier configurations.

Installation

  • Copy HTMLPurifier helper to:
    ./application/helpers/htmlpurifier_helper.php
  • Download the HTMLPurifier standalone version and copy to:
    ./application/third_party/htmlpurifier-4.4.0-standalone/*

Usage

  • Create and customize configurations
  • Use the following code to purify:
    $this->load->helper('htmlpurifier');
    $clean_html = html_purify($dirty_html);
    Or to use a config:
    $clean_html = html_purify($dirty_html, 'comment');

About

A Codeigniter helper to purify html input using the HTMLPurifier standalone class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published