allow 'width' attribute when sanitizing HTML code

This commit is contained in:
Helmut Merz 2012-09-15 10:55:11 +02:00
parent 22177027c0
commit a577b6cbf4

View file

@ -28,8 +28,8 @@ from cybertools.text.lib.BeautifulSoup import Declaration, NavigableString
validTags = ('a b br div em font h1 h2 h3 i li ol p pre span strong '
'table td tr u ul').split()
validAttrs = ('align border cellpadding cellspacing class colspan href rowspan '
'style title').split()
validAttrs = ('align border cellpadding cellspacing class colspan '
'href rowspan style title width').split()
validStyles = 'font-style font-weight'.split()
validStyleParts = 'border padding'.split()