[Zope] dtml-var & xhtml

Jaroslav Lukesh lukesh at seznam.cz
Sat Apr 17 10:44:49 EDT 2004


sungmook at yahoo.com wrote:
> hello,
> 
> the dtml-var <dtml-var sequence-query> has
> an & when i view its html code.
> html specification need this to be &amp; 
> and therefore it cannot be validated by the validator
> of w3.org
> how do i convert the & of the dtml-var sequence-query
> to &amp; ?
> i tried <dtml-var sequence-query html_quote> but it
> did not work....

<dtml-var "_.str(_['sequence-query']).replace('&','&amp;')">


Regards,

-- 

Jaroslav Lukeš




More information about the Zope mailing list