Line Breaks in Captions
-
Hi there,
I know this has been a topic many times but it seems in one of the latest updates, something has changed and I haven’t found a solution to my problem so far.I had a setup where the customer would just write his caption and use line breaks (without HTML) and I would use:
<?php echo nl2br($image->description); ?>
to output it on the page with html line breaks automatically inserted.
But now that’s not working any more. If I insert HTML in the caption, all is fine but If I insert it like before:
this is my multiline caption
after saving, it’s reset in the database to
this is my multiline caption
My customer says he’s not able to use that kind of code in a caption so I’m asking: Is there a way to go back to the way it was before?
THANK YOU so much!
Regards
Anja
- The topic ‘Line Breaks in Captions’ is closed to new replies.