[Zope] spaces in postgres data field

Chris Withers chrisw at nipltd.com
Thu Aug 7 18:47:08 EDT 2003


Ian Sealy wrote:
> Anyway, the latter would produce (for example):
> 
> <input type="text" value=1234 candykane Ln size="30">
> 
> So the value would indeed be 1234. Try putting some quotes round it.
> That is:
> 
> <input type="text" value="<dtml-var address1>" size="30">

One good reason to use ZPT; you can't generate HTML that's broken in the way 
Ian's suggestion fixes.

> You also need to quote any HTML in address1. Otherwise you'll have
> problems with addresses that contains quotes and other HTML characters.
> So:
> 
> <input type="text" value="<dtml-var address1 html_quote>" size="30">

Another good reason to use ZPT, everything is HTML quoted by default, although 
you can optionally turn it off per statement usign the 'structure' keyword...

Chris




More information about the Zope mailing list