Hi,
I've got a problem which requires a solution, which is probably very simple, but I can't seem to find any easy way to do it.
The problem is, I've got a table and someone write a very long "word" like:
Hellllllllllllllllllllllllllllllllllo!!!
When the word exceeds the width of the column, it usually auto-breaks to a new line. But that only happens if the word contains spaces. So a very very very long "hellllllllllllo" would disrupt the table look.
Perhaps there's a html-approach to this, but anyway, what I would like to accomplish, is that if the word is too long (e.g. contains more than 150 characters without space) it needs to be broken in two or perhaps even three or more parts (depending on how long the word is).
The value of the field comes in one string, e.g.:
$var = "Hi there helllllllllllllllllllllllllllllllo bye";
Such string would ideally be broken like this:
Hi there hellllllllll<br>
lllllo bye
Or more <br>'s if needed.
I hope this is not a stupid question or that I overlooked something very very simple ;-)
Martin.