Commit add07c59 authored by Bartek Górny's avatar Bartek Górny

fixed clearing of html headers

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9850 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f3851535
......@@ -41,8 +41,8 @@ mimetypes.init()
rs=[]
rs.append(re.compile('<!.*>'))
rs.append(re.compile('<HEAD>.*</HEAD>',re.DOTALL|re.MULTILINE|re.IGNORECASE))
rs.append(re.compile('<!DOCTYPE[^>]*>'))
rs.append(re.compile('<.?(HTML|BODY)[^>]*>',re.DOTALL|re.MULTILINE|re.IGNORECASE))
def stripHtml(txt):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment