Closed GoogleCodeExporter closed 9 years ago
The browser does this, not Slimbox. And it is actually a good thing since it
allows
you to insert HTML in the image captions, not just simple text AND still produce
valid HTML in your pages.
And you can still escape the text like you want: you just need to double-escape
the
text by replacing "&" with "&". Like this:
<a href="test.jpg" rel="lightbox-gallery"
title="<script>alert('tadaaa')</script>"><img
src="test_sm.jpg" alt="" /></a>
If you do this programmatically (in PHP or others), just call escape() twice.
It will
work.
Then no "tadaa" anymore.
Original comment by christophe.beyls@gmail.com
on 20 Aug 2009 at 12:06
Original issue reported on code.google.com by
nuramo...@gmail.com
on 26 May 2009 at 1:46