Ticket #488: removetags.patch
File removetags.patch, 599 bytes (added by , 19 years ago) |
---|
-
django/core/template/defaultfilters.py
177 177 tags_re = '(%s)' % '|'.join(tags) 178 178 starttag_re = re.compile('<%s(>|(\s+[^>]*>))' % tags_re) 179 179 endtag_re = re.compile('</%s>' % tags_re) 180 singletag_re = re.compile('<%s*/>' % tags_re) 180 181 value = starttag_re.sub('', value) 181 182 value = endtag_re.sub('', value) 183 value = singletag_re.sub('', value) 182 184 return value 183 185