should i be able to put html in captions?

if i use rel="lightvideo[][caption]" then "caption" appears below, if i use rel="lightvideo[][caption]" then nothing appears..
doesn't seem to be filtered by input filters as it is present when i look at the source.

thanks,

david

Comments

david.a.king’s picture

sorry, second code with html that doesn't work should be rel="lightvideo[][<em>caption</em>]" obviously, or anything else

mcarrera’s picture

susbscribe

david.a.king’s picture

tracked this down to being filtered out by "filterxss" and removed that on 724 of lightbox.js - don't entirely understand why or what it's doing and seems to be related to a security alert http://drupal.org/node/304873#comment-3956670

obviously i'd prefer a better solution!

Matt-H’s picture

Are you using the < and > characters, or the html entities &lt; and &gt;? In other words, is your code
rel="lightvideo[][<em>caption</em>]"
or
rel="lightvideo[][&lt;em&gt;caption&lt;/em&gt;]"
?

In the README.txt, it describes "Turning the Image Caption into a Link" and for that HTML, it gives the note:

Note, the < and > characters have been changed to their HTML entities, and the " have been escaped.

So I suspect you would need to do the same with other html in the caption.