Hi Luciano Thank you! Stefan PS.: I was reading the syntax about 10 times and it never made "klick" ... well may I should make sometimes a break ... ----- Original Message ----- From: "Luciano Ramalho" <luciano@hiper.com.br> To: "Stefan Mallepell" <steve@syso.ch> Cc: <zope@zope.org> Sent: Thursday, April 19, 2001 3:25 PM Subject: Re: [Zope] delete HTML Tags out of a form input
Stefan Mallepell wrote:
My code is: <dtml-let transtab="_.string.maketrans('><','**')"> <dtml-call "REQUEST.set('Message',_.string.translate(Message,transtab,'><'))"> </dtml-let>
The documentation for translate explains that the third argument, '><' in your case, is used to specify characters do be removed before the translation occurs. If you do like this...
"REQUEST.set('Message',_.string.translate(Message,transtab))">
...it should work.
Regards,
Luciano
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )