I've been loving HTML purifier! But I am having trouble getting it to work with a new module I installed called Shadowbox.
To use shadowbox you can add the following or something similar to any link
<a rel="shadowbox;width=405;height=340;player=swf">LINK TEXT</a>
I went ahead and added "shadowbox" to http://htmlpurifier.org/live/configdoc/plain.html#Attr.AllowedRel
How can I support the "width", "height" and "player" attributes in the rel tag?
Comments
Comment #1
ezyang commentedEhm, you are almost certainly going to have to hack on some code. Lightbox is using a very unconventional form for rel, even as far as microformats go. Maybe the easiest thing to do is to redefine rel as pure CDATA.
Comment #2
bryancasler commentedLooks like the lightbox2 module uses similar formating as well.
http://drupal.org/project/lightbox2
This modules functionality isn't make or break for my site, so thanks for the quick response.
Comment #3
attheshow commentedJust for future reference, I was able to use HTMLPurifier and Lightbox2 together by using HTMLPurifier (advanced) and adding the following into the AllowedRel box:
Comment #4
attheshow commented