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?

REF: http://drupal.org/project/shadowbox

Comments

ezyang’s picture

Ehm, 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.

bryancasler’s picture

Looks 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.

attheshow’s picture

Just for future reference, I was able to use HTMLPurifier and Lightbox2 together by using HTMLPurifier (advanced) and adding the following into the AllowedRel box:

external
lightbox
lightbox2
attheshow’s picture

Status: Active » Closed (fixed)