Django

Code

Changeset 4933

Show
Ignore:
Timestamp:
04/05/07 09:52:33 (2 years ago)
Author:
mtredinnick
Message:

Backed out a portion of [4919] until I can make it worth smoothly with
oldforms. Refs #3924.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/html.py

    r4919 r4933  
    2626    "Returns the given HTML with ampersands, quotes and carets encoded" 
    2727    if not isinstance(html, basestring): 
    28         html = smart_unicode(html) 
     28        html = str(html) 
    2929    return html.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('"', '&quot;').replace("'", '&#39;') 
    3030