8000 Let width and height attributes · Harry0201/python-readability@be2a1c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit be2a1c4

Browse files
Miguel Galvesburiy
authored andcommitted
Let width and height attributes
1 parent f1759c1 commit be2a1c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readability/cleaners.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33
from lxml.html.clean import Cleaner
44

5-
bad_attrs = ['width', 'height', 'style', '[-a-z]*color', 'background[-a-z]*', 'on*']
5+
bad_attrs = ['style', '[-a-z]*color', 'background[-a-z]*', 'on*']
66
single_quoted = "'[^']+'"
77
double_quoted = '"[^"]+"'
88
non_space = '[^ "\'>]+'

0 commit comments

Comments
 (0)
0