[Zope] metal, macro, HTML entities

s d xscd@xscd.com
Fri, 7 Feb 2003 00:55:50 -0700


Hello--

How does one preserve an HTML entity (in this case, a numerical HTML enti=
ty=20
such as X) that exists within a METAL macro as it is expanded?

Is there a way to suppress the conversion of the ampersands to "&" in=
 a=20
macro when it is expanded by a call from a Zope page template?

I have defined a macro that includes within it the following image tag, w=
hich=20
itself includes HTML numerical entities I would like to preserve unaltere=
d:

<img class=3D"middle" title=3D"Address email to:=20
&#088;&#083;&#067;&#068;&#064;&#088;&#083;&#067;&#068;&#046;&#067;&#079;&=
#077;"=20
src=3D"images/at-icon.jpg" width=3D"32" height=3D"27" alt=3D"send email "=
 />

When the macro is called by a page template and expanded, the entity "&#0=
88;"=20
becomes "&amp;#088;" which of course does not function as the original HT=
ML=20
entity would.

I'm new to Zope, and trying to learn it from the start using only strict =
XHTML=20
1.1, CSS2 and TAL, METAL with no DTML (and learning Python too as I go=20
along).

Thank you,

Steve D.
New Mexico US