[Zope] More tolerant Stripogram (solution)

Chris Withers chris at simplistix.co.uk
Tue May 17 07:26:49 EDT 2005


Jaroslav Lukesh wrote:
>>>I was extend SquishDot with wysiwyg editor (origin: vsbabu ieeditor). But
>>>it was not accept many tags due too small number of allowed html
>>>attributes in stripogram.
> 
>>Looks like you completely defait the purpose of the stripping ;)

Yeah, what Tino said ;-)

Why are you bothering to strip when you basically let people put in all 
the abusive tags anyway?

> return strip(html2safehtml(text,self.getProperty('valid_tags',('b', 'a', 'i', 
> 'br', 'p', 'h3', 'ul', 'li', 'font', 'br'))))

Also, why don't you just add a valid_tags property to your Squishdot 
site rather than hacking the source code?

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list