Backed out a portion of [4919] until I can make it worth smoothly with
oldforms. Refs #3924. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e57d1bddda
commit
73c40c5999
|
@ -25,7 +25,7 @@ del x # Temporary variable
|
|||
def escape(html):
|
||||
"Returns the given HTML with ampersands, quotes and carets encoded"
|
||||
if not isinstance(html, basestring):
|
||||
html = smart_unicode(html)
|
||||
html = str(html)
|
||||
return html.replace('&', '&').replace('<', '<').replace('>', '>').replace('"', '"').replace("'", ''')
|
||||
|
||||
def linebreaks(value):
|
||||
|
|
Loading…
Reference in New Issue