Re: Escape problem

From: Terry Reedy (tjreedy_at_udel.edu)
Date: 03/02/04


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



Relevant Pages

  • Re: [opensuse] Strange Firefox Problem
    ... # begin quote ... User Name: [entry box] ... if I could get display screens to show Danish characters. ...
    (SuSE)
  • Em dash and curly quotes displayed strangely
    ... I've just come upon an intermittent problem that is pretty perplexing--The ... spacing of the em dash and the curly quotes is strangely affected. ... or quote than it should be. ... If I change the font style, the display is normal. ...
    (microsoft.public.word.newusers)
  • Re: Issue with mailbox move
    ... I tested in my lab with a quote and got the same result. ... However, I see from that RFC that commas are valid, but I hadn't tested with a comma and I had shut my lab down. ... Do you use the simple display name any more? ...
    (microsoft.public.exchange.admin)
  • Re: Filtering data in a portal
    ... > Hi Matt: ... "Quote", it's up to you). ... Don't worry about the checkbox value choices displayed on the layout. ... at all will display in the portal. ...
    (comp.databases.filemaker)
  • Re: To box autocomplete
    ... > How does this relate to the Auto-Complete feature when physically starting ... To see your problem try exporting your Address book in .CSV format, ... in its display value ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)