Skip to content

implement HTMLPurifier into Codeigniter and use it direct from the security class

Notifications You must be signed in to change notification settings

ArabGenius/CI-HTMLPurifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

# CI-HTMLPurifier
implement HTMLPurifier into Codeigniter and use it direct from the security class

---------------------------------------------

Hello
Many Codeigniter users wants to use htmlpurifier rathere than the xss_clean function in Codeigniter.
in this you will find a file called MY_Security.php witch you need to put it in (core) folder in your ci application
then you need to download htmlpurifier standalone from here
http://htmlpurifier.org/download
and extract it into (third_party) folder
so it will look like this
application/third_party/htmlpurifier-4.10.0-standalone
Hint .. it dose not require to rename it as MY_Security.php will try to find it automaticlly


You can use it later in your code like this

$clean_html = $this->security->htmlpurify($dirty_html);

About

implement HTMLPurifier into Codeigniter and use it direct from the security class

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages