Merge branch 'master' into bbmaster
This commit is contained in:
commit
a111780fc0
4 changed files with 4 additions and 6 deletions
BIN
browser/icons/arrow_left.png
Normal file
BIN
browser/icons/arrow_left.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 345 B |
BIN
browser/icons/arrow_right.png
Normal file
BIN
browser/icons/arrow_right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 349 B |
BIN
browser/icons/arrow_up.png
Normal file
BIN
browser/icons/arrow_up.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 372 B |
10
util/html.py
10
util/html.py
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (c) 2010 Helmut Merz helmutm@cy55.de
|
||||
# Copyright (c) 2012 Helmut Merz helmutm@cy55.de
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -18,18 +18,16 @@
|
|||
|
||||
"""
|
||||
Strip HTML tags and other HTML-related utilities.
|
||||
|
||||
$Id$
|
||||
"""
|
||||
|
||||
from cybertools.text.lib.BeautifulSoup import BeautifulSoup, Comment
|
||||
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 '
|
||||
validTags = ('a b br div em font h1 h2 h3 i img li ol p pre span strong '
|
||||
'table td tr u ul').split()
|
||||
|
||||
validAttrs = ('align border cellpadding cellspacing class colspan '
|
||||
'href rowspan style title width').split()
|
||||
validAttrs = ('align alt border cellpadding cellspacing class colspan '
|
||||
'href rowspan src style target title width').split()
|
||||
|
||||
validStyles = 'font-style font-weight'.split()
|
||||
validStyleParts = 'border padding'.split()
|
||||
|
|
Loading…
Add table
Reference in a new issue