diff --git a/core/support.py b/core/support.py old mode 100755 new mode 100644 index 7ec23087..4b104599 --- a/core/support.py +++ b/core/support.py @@ -496,7 +496,7 @@ def html_uniform(data): """ replace all ' with " and eliminate newline, so we don't need to worry about """ - return re.sub("='([^']+)'", '="\\1"', data.replace('\n', ' ').replace('\t', ' ').replace(' ', ' ')) + return re.sub(r"\s+| ", " " , re.sub("='([^']+)'", '="\\1"', data)) def scrape(func):