Forum: Ruby-Forum.com truncate issue for special character.

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

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.