Escape problem

Terry Reedy tjreedy at udel.edu
Tue Mar 2 10:39:22 EST 2004


<ketulp_baroda at yahoo.com> wrote in message
news:f046efac.0403020657.432f14ac at 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







More information about the Python-list mailing list