yachtman wrote:
> This might be such a stupid simple question, so forgive me--I did
> search the forum and elsewhere and couldn't find the answer...
> 
> I have an HTML text string that formats nicely on a web  page:
> 
> s = "Mom & Dad"    => "Mom & Dad"
> 
> How do I convert s to just ascii characters, ie. "Mom & Dad"?

I haven't tried this, but it looks like a robust solution that might 
work for you:
http://htmlentities.rubyforge.org/
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to