Ticket #488: removetags.patch

File removetags.patch, 599 bytes (added by ilikeprivacy@…, 18 years ago)

patch

  • django/core/template/defaultfilters.py

     
    177177    tags_re = '(%s)' % '|'.join(tags)
    178178    starttag_re = re.compile('<%s(>|(\s+[^>]*>))' % tags_re)
    179179    endtag_re = re.compile('</%s>' % tags_re)
     180    singletag_re = re.compile('<%s*/>' % tags_re)
    180181    value = starttag_re.sub('', value)
    181182    value = endtag_re.sub('', value)
     183    value = singletag_re.sub('', value)
    182184    return value
    183185
Back to Top