It breaks if the post title contains " characters
-
For a post having the title:
Test <img src="demo.png" class="testclass">And content:
<a href="http://www.example.com/wp-content/uploads/picture.jpg"><img src="http://www.example.com/wp-content/uploads/picture-150x150.jpg" alt="" width="150" height="150" class="alignnone size-thumbnail wp-image-123456" /></a>The html generaded code as seen by firebug is:
<a class="testclass cboxElement" demo.png"="" title="Test <img src=" rel="lightbox[16564]" href="http://www.example.com/wp-content/uploads/picture.jpg">"><img width="150" height="150" class="alignnone size-thumbnail wp-image-123456" alt="" src="http://www.example.com/wp-content/uploads/picture-150x150.jpg"></a>which is nonsense and it looks strange as seen in browser too.
The topic ‘It breaks if the post title contains " characters’ is closed to new replies.