well, thanks everyone
I found the answer:
There's some example code here http://htmlpurifier.org/live/INSTALL
and to allow some specific tags:
$config->set('HTML.Allowed', 'b,a[href],i,img[src|alt]');
alt is also needed, as it is a required attribute by W3C spec.