Newbie, please be gentle on me

28 views
Skip to first unread message

Christopher East

unread,
Sep 14, 2021, 6:51:18 AM9/14/21
to htmlpurifier
Hi all, 

I'm trying to setup the htmlpurifier plugin for code igniter for a new project I am involved in and would like to get it to filter down to just displaying plain text, taking out all of the tags, etc... 

So far I've got the below; what else do I have to do? 

case 'plaintext':
$config = \HTMLPurifier_Config::createDefault();
        $config->set('Core.Encoding', $ci->config->item('charset'));
$config->set('iString',true);
$config->set('AutoFormat.AutoParagraph',false);
$config->set('AutoFormat.Linkify',false);
$config->set('AutoFormat.RemoveEmpty',true);
break;
Reply all
Reply to author
Forward
0 new messages