Changeset 4933
- Timestamp:
- 04/05/07 09:52:33 (2 years ago)
- Files:
-
- django/trunk/django/utils/html.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/utils/html.py
r4919 r4933 26 26 "Returns the given HTML with ampersands, quotes and carets encoded" 27 27 if not isinstance(html, basestring): 28 html = s mart_unicode(html)28 html = str(html) 29 29 return html.replace('&', '&').replace('<', '<').replace('>', '>').replace('"', '"').replace("'", ''') 30 30
