[Zope] Difference between &dtml-myvar; and <dtml-var myvar>

Hung Jung Lu hungjunglu@hotmail.com
Thu, 15 Jun 2000 12:47:17 PDT


This has been something that I've never been very careful about. Until I got 
bitten in generating a JavaScript.

What is the difference between

  <dtml-var myvar>

and

  &dtml-myvar;

?

I have noticed some differences before, but I don't remember the details, 
now. I guess one of them mangles the result so it can be looked at in a 
browser (properly HTML quoted?)

  <dtml-call "REQUEST.set('myvar', '&')">
  <dtml-var myvar><br>
  &dtml-myvar;<br>

Visually they look the same, but if I looked at the source:

  &<br>
  &amp;<br>

Is the a technical term (e.g: "rendering", "HTML-quoting", etc.) that 
describes the difference in the output?

regards,

Hung Jung

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com