Forum: truncate issue for special character.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3548d30217e9921c410db19ce8ce38d0?d=identicon&s=25 Sunny Bogawat (sunny_bogawat)
on 2008-09-30 11:21
In my application i am showing group name in select box
while showing i am truncating name using following code

but for group 'Friends from office "Neovasolutions".' it shows name in
drop down as a Friends from office & quote...
please reply me how to avoid such special character while truncating?
This topic is locked and can not be replied to.