Wonder if anyone has opinions on the best way to deal with the following problem:
Our web site accepts user input of titles and we limit the length of titles, but once in a while a user will enter a long string of text with no spaces. For example:
When displaying that title, I want the browser to wrap it, as it would if there were spaces.
I'd rather not force breaks server-side, because:
a) we don't know reliably whether a particular comma is really a "word boundary" (it could be part of a number like "1,234")
b) the width where it will be displayed is not necessarily known on the server side.