Changeset 5701
- Timestamp:
- 07/15/07 00:03:28 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/utils/html.py
r5609 r5701 51 51 def strip_entities(value): 52 52 "Returns the given HTML with all entities (&something;) stripped" 53 return re.sub(r'&(?:\w+|#\d );', '', force_unicode(value))53 return re.sub(r'&(?:\w+|#\d+);', '', force_unicode(value)) 54 54 strip_entities = allow_lazy(strip_entities, unicode) 55 55
