Re: urllib.quote() change in 2.4.2

mario ruggier <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
On Jan 17, 2006, at 5:40 PM, Titus Brown wrote:

> How do you escape "'"?
>
> e.g.
>
> <input type='text' name='blah' value='%(value)s'>
>
> where value="contains'quotes\"of all kinds"?

That could (should?) be done using html character entities, e.g.

	value="contains&apos;quotes&quot;of all kinds"

This assumes however a target xml vocabulary that knows about these 
character entities... but isn't this done for you automatically by 
htmltext in quixote, or by h8 in qpy?

mario
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.