From: Peter Woodsky Date: 2008-08-12T21:26:07+09:00 Subject: Re: NEWBIE eruby basic form problem Casimir wrote: > Peter Woodsky kirjoitti: >> Is there something I can do to "<%=comment%>" to handle '' "" etc. >> >> Many thanks any help is appreciated > > You can escape characters in several different ways. The CGI class is > handy here, too. Example follows: > > require 'cgi' > puts CGI.escape("black/white") > > You can also unescape strings, and so forth. See the docs at > http://ruby-doc.org/core/classes/CGI.html > > It there is some string in particular you are looking for, you can > search for it with include?, and so on, using the String class, see docs > here: > http://www.ruby-doc.org/core/classes/String.html > > Did you have a more specific problem in mind? > > > Casimir Pohjanraito Casimir Thanks for the tips. You gave me enough of a hint to to solve most of the problem. There still seems to be a problem with characters like % Regards, Peter -- Posted via http://www.ruby-forum.com/.