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

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?
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.