I am using Yii 1.1.7 which ships with HTML Purifier 4.3.0 which supports the HTML.Nofollow directive.
I tried the following:
$p = new CHtmlPurifier();
$p->options = array(
'HTML.Nofollow'=>true,
'URI.AllowedSchemes'=>array(
'http' => true,
'https' => true,
),
);
but it gives me:
Cannot set undefined directive HTML.Nofollow to value on line 1707 in file /[…]/yii/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php
Any help would be appreciated!