zope  

[Zope] Quotes in DTML (Python) expressions(was: [Zope] HTML-Code in variables (addition)) (was: [Zope] HTML-Code in variables (addition))

Dieter Maurer
Sat, 07 Oct 2000 05:11:53 -0700

Lars Heber writes:
 > <dtml-let text="my html text with a link to <a
 > href="http://www.yahoo.com">Yahoo!</a>">
<dtml-let text="'my html text with a link to <a 
href=\x22http://www.yahoo.com\x22>Yahoo!</a>'">

I.e. you use Python's hexadecimal (or octal) quoting for '"' (\x22)
inside the Python string.


Dieter

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

  • [Zope] Quotes in DTML (Python) expressions(was: [Zope] HTML-Code in variables (addition)) (was: [Zope] HTML-Code in variables (addition)) Dieter Maurer