Re: Escape problem
From: Terry Reedy (tjreedy_at_udel.edu)
Date: 03/02/04
- Next message: Terry Reedy: "Re: Feature request: subclassing FunctionType [Was: Some languageproposals]"
- Previous message: Pieter Claerhout: "RE: Binaries for Swish-E and Python 2.3 for Windows"
- In reply to: ketulp_baroda_at_yahoo.com: "Escape problem"
- Next in thread: Jeff Epler: "Re: Escape problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 2 Mar 2004 10:39:22 -0500 To: python-list@python.org
<ketulp_baroda@yahoo.com> wrote in message
news:f046efac.0403020657.432f14ac@posting.google.com...
> Hi
> I am developing a web application.
> I have a string 'foo"bar"' say in variable s.
> When I print s on the python shell it prints correctly 'foo"bar"'
> whereas when I try to display s on the form it just prints 'foo'. What
> should I do to print complete string 'foo"bar"' on the form
If I understand correctly, you are trying to print a string with an
embedded double quote ("), which html interpretes as a metachar rather than
as content. Isn't there an entity reference for the double quote char?
named 'quote' maybe?
tjr
- Next message: Terry Reedy: "Re: Feature request: subclassing FunctionType [Was: Some languageproposals]"
- Previous message: Pieter Claerhout: "RE: Binaries for Swish-E and Python 2.3 for Windows"
- In reply to: ketulp_baroda_at_yahoo.com: "Escape problem"
- Next in thread: Jeff Epler: "Re: Escape problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|