I'm using simple_format to format and display posted content from
users. This content sometimes has urls in it.
The problem I'm having is that if the urls are long enough to wrap,
they do, but the url gets split with a <br> tag. Then, if the user
clicks on the link, only the first, non-wrapped part of the link gets
posted to the browser... and that's an invalid link.
Is there a better way to handle this so that the link wraps, but keeps
its integrity?
Have you tried to use auto_link with simple_format? This, I would
think, would keep your link integrity, even if there was a line break.
Let me know if that works.