[Zope] delete HTML Tags out of a form input

Luciano Ramalho luciano@hiper.com.br
Thu, 19 Apr 2001 10:25:54 -0300


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