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.
9d6568ce3aa2afda64fb5dfa2625e14c?d=identicon&s=25 Sunny B. (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.