I know that I can set allowed tags and end up attributes in an HTML cleaner with something like:
$cfg->set('HTML.Allowed', 'a[href|title],'b','em','i','strike');
but how can I also prohibit any attribute values โโthat do not match certain predefined values?
For example, I can enable the div + tag:
$cfg->set('HTML.Allowed', 'div[class],a[href|title],'b','em','i','strike');
but only if the class has abc, def or xyz
source share