On Fri, 26 Feb 2010, Victor Engmark wrote:
> How can I escape this in the search field? Or to make it concrete, if
> I want to search for the tag 6"2' , what do I have to enter in the
> search field?

Search-wise, you can enter any text literally.

To escape values for printing in HTML forms and general HTML output, use
cgi.escape().

To escape values for including in URLs and HTML links, use
urllib.quote().

To escape values for storing into DB, run_sql(query, params) should do
the job out of the box.

Best regards
--
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to