I have the following entered in the node body
<a href="/sites/isaacsonwebdevelopment.com/files/Portfolio/FullPage/Thumbs/YAP.jpg" rel="lightbox[portfolio]" title="<a href="http://blog.marceisaacson.com">Y.A.P.W.I.S.E.</a><br /><a href="/YAP-details">Project Details</a>"><img src="/sites/isaacsonwebdevelopment.com/files/Portfolio/UpperPage/Thumbs/YAP.jpg" alt="Y.A.P.W.I.S.E. thumbnail" title="Y.A.P.W.I.S.E." style="width: 290px; height: 142px;" /></a>
In 6.x-1.9 it was interpreted correctly to create a line break at the <br /> between the two links in the title attribute. In 6.x-1.10 it does not generate the line break.
I have confirmed that this is a 6.x-1.10 error by reverting to 6.x-1.9. See the screen print for the error and the correct way once I revert.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | lightbox-textandanchor.jpg | 78.27 KB | vegantriathlete |
| lightboxcorrect.jpg | 60.32 KB | vegantriathlete | |
| lightboxerror.jpg | 60.81 KB | vegantriathlete |
Comments
Comment #1
vegantriathleteNote: to simplify your testing of this, you probably don't need to attach two anchor tags. I think you will get the same error if you attach two pieces of text separated by the
<br />. I know that one of my images had some text followed by an anchor separated with the line break code and it had the same issue with the line break not rendering properly.Here is the content of the node body:
<a href="/sites/isaacsonwebdevelopment.com/files/Portfolio/FullPage/Thumbs/HSSDDS.jpg" rel="lightbox[portfolio]" title="H. Scott Stewart, DDS - currently under construction<br /><a href="/HSSDDS-details">Project Details</a>"><img src="/sites/isaacsonwebdevelopment.com/files/Portfolio/UpperPage/Thumbs/HSSDDS.jpg" alt="H. Scott Stewart, DDS thumbnail" title="H. Scott Stewart, DDS" style="width: 290px; height: 138px;" /></a>I have attached a screen print of it displaying properly.
Comment #2
stella commentedthe filter_xss() function is stripping that tag out. The next release will allow you to configure a list of allowed tags.
Comment #3
stella commentedIn the next release (tomorrow), it will be possible to configure the list of allowed html tags at admin/settings/lightbox2.