removed duplicate function local_html_escape

This commit is contained in:
mdipierro
2019-02-24 02:12:22 -08:00
parent b58b7da18f
commit c439355c1a
4 changed files with 16 additions and 40 deletions
+5 -3
View File
@@ -17,18 +17,20 @@ import copy
import types
import urllib
import base64
from gluon import sanitizer, decoder
import itertools
from gluon._compat import reduce, pickle, copyreg, HTMLParser, name2codepoint, iteritems, unichr, unicodeT, \
from pydal._compat import reduce, pickle, copyreg, HTMLParser, name2codepoint, iteritems, unichr, unicodeT, \
urllib_quote, to_bytes, to_native, to_unicode, basestring, urlencode, implements_bool, text_type, long
from gluon.utils import local_html_escape
from yatl import sanitizer
import marshal
from gluon import decoder
from gluon.storage import Storage
from gluon.utils import web2py_uuid, simple_hash, compare
from gluon.highlight import highlight
local_html_escape = lambda text, quote=False: sanitizer.xmlescape(text, quote, colon=False)
regex_crlf = re.compile('\r|\n')
join = ''.join