Diverse Code Cleanups
*Code wurde PEP-8 gerecht formatiert * Kleine Fehler die der PyCharm Inspector beanstandet wurden korrigiert
This commit is contained in:
committed by
Christian Berg
parent
f34281089d
commit
86a0db050d
@@ -1,8 +1,8 @@
|
||||
'''
|
||||
"""
|
||||
Created on 19.10.2011
|
||||
|
||||
@author: christian
|
||||
'''
|
||||
"""
|
||||
from BeautifulSoup import BeautifulSoup
|
||||
|
||||
|
||||
@@ -46,10 +46,10 @@ class HtmlCleaner(object):
|
||||
self.clean_attributes(tag)
|
||||
|
||||
def clean_html(self, fragment=''):
|
||||
'''
|
||||
"""
|
||||
Reparses and cleans the html from XSS Attacks until it stops changing.
|
||||
@param fragment:
|
||||
'''
|
||||
"""
|
||||
while True:
|
||||
soup = BeautifulSoup(fragment)
|
||||
self.tag_removed = False
|
||||
|
||||
Reference in New Issue
Block a user