I’m using HTML Purifier and saw a naming conflict with my existing code. The variable $config (an array) is already in use in my code for my config.ini file but based on the HTML Purifier docs, it’s also using $config (as object) for customization. Is there a way to rename the $config used by HTML Purifier to something like $htmlpur_config?
I’m using HTML Purifier and saw a naming conflict with my existing code. The
Share
When you create your configuration object just name it differently
The key is creating the
$configobject and passing it into the constructor for theHTMLPurifier