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

Hermann Himmelbauer dusty at qwer.tk
Wed Aug 20 13:34:27 EDT 2008


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>" />

Zope3 makes a &lt; / &rt; out of the "<>" characters:

<input type="hidden", name="xyz", value="&lt;ABC&rt;"

Is there a way to get around this automatic conversion? I tried it via:

<input ....
    tal:attributes="value python:'<ABC>'" />

But this makes no difference.

Any clues?

Best Regards,
Hermann

P.S.: I know, this seems to make no sense, but the page is a template for 
another, foreign application, which needs this specific values as 
placeholders and which I can not adapt...

-- 
hermann at qwer.tk
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7


More information about the Zope-Dev mailing list