[Zope] delete HTML Tags out of a form input
Stefan Mallepell
Stefan Mallepell" <steve@syso.ch
Thu, 19 Apr 2001 11:21:34 +0200
Hi
I would like to delete HTML tags which may have been entred in to a form,
before I store the value into a ZClass Instance ..
My Idea was just to replace the '<' '>' characters with something less
dangerous ..
My code is:
<dtml-let transtab="_.string.maketrans('><','**')">
<dtml-call
"REQUEST.set('Message',_.string.translate(Message,transtab,'><'))">
</dtml-let>
The problem is now, that it deletes the >< but it don't replace them with
the * ... what is it, what am I doing wrong?
Thanks for help
Regards
Stefan Mallepell