HTMLPurifier_Injector::checkNeeded
This function checks if the HTML environment will work with the Injector: if p tags are not allowed, the Auto-Paragraphing injector should not be enabled.
Signature
public function checkNeeded(Instance
$config )
Parameters
$config
— object- of HTMLPurifier_Config
Returns
- Boolean
- false if success, string of missing needed element/attribute if failure