allow 'width' attribute when sanitizing HTML code
This commit is contained in:
parent
22177027c0
commit
a577b6cbf4
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue