If someone were to input a string of, say, a long string of characters (say, the letter "m" repeated 100 times.. no breaks), it would kinda screw up the layout in Internet Explorer. How should I go about combating this?
The idea is to break up (or truncate) any "word" in any amount of text into strings no longer than # characters. For instance:
I just went on a nice walk wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww my dog. ==> I just went on a nice walk wwwwwwwwww wwwwwwwwww wwwwwwwwww wwwwwwwwww wwwwwwwwww my dog.
ANy suggestions? I assume regular expression, but haven't been able to conjure up anything that'll get the job done. Thanks a million.