Archive for March, 2010

How to add dots and shorten a string

While working on the back-end Calcatraz management system, I came across a situation where I wanted to display strings, but if they were too long I wanted to truncate them and add three dots (ellipsis) to the end to show that this had occurred. I first got on Google and looked for a solution. The [...]