[Zope-dev] How to put "<", ">" in HTML attributes?

Dieter Maurer dieter at handshake.de
Sat Aug 23 07:45:28 EDT 2008


Hermann Himmelbauer wrote at 2008-8-20 19:34 +0200:
>Hi,
>I have a page template, that should have the characters "<" and ">" in the 
>resulting HTML code, e.g.:
>
><input type="hidden", name="xyz", value="<ABC>" />

HTML forbids "<" in attributes: it must be represented there as "&lt;".

Thus, Zope does the correct thing (as standard conformity is a good thing).



-- 
Dieter


More information about the Zope-Dev mailing list