S
Steve
I just noticed a bug on my site where if someone enters a continuous string
of characters like
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
and I have that being rendered into a table with a width set to say.. 100,
it will stretch the table to fit all those characters. Enforcing characters
wouldn't really work cause the cell is allowed to wrap, they can enter a ton
of text if they want to, but when there are that many characters next to
each other... it breaks it. I know I could sit there and count characters
and watch for spaces and determine when something smells bad, but there must
be an easier way to do this.
I have tried explicitly setting the <td> to the desired width, that won't
stop it either.
Any ideas?
Steve
of characters like
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
and I have that being rendered into a table with a width set to say.. 100,
it will stretch the table to fit all those characters. Enforcing characters
wouldn't really work cause the cell is allowed to wrap, they can enter a ton
of text if they want to, but when there are that many characters next to
each other... it breaks it. I know I could sit there and count characters
and watch for spaces and determine when something smells bad, but there must
be an easier way to do this.
I have tried explicitly setting the <td> to the desired width, that won't
stop it either.
Any ideas?
Steve