Forums / Cotonti / Support / htmlpurifier stripping relationship attribute from hyperlinks [FIXED]

Hodges
#37333 2013-03-29 21:35

You are, as ever, correct! The solution is to add the following line to plugins / htmlpurifier / presets / htmlpurifier.group_5.preset.php:

 

$config->set('Attr.AllowedRel', 'gallery1,gallery2,gallery3,gallery4');

 

I've chosen group 5 so only admins have this privilege and only the allowed values: gallery1,2,3,4 so only up to 4 galleries per page are allowed.

Thanks for steering me in the right direction!

This post was edited by Hodges (2013-04-02 20:06, 11 years ago)