MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / get_entitydefs

Function get_entitydefs

thirdparty/clientform/clientform.py:264–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 return data
263
264def get_entitydefs():
265 from codecs import latin_1_decode
266 entitydefs = {}
267 try:
268 _html_entities.name2codepoint
269 except AttributeError:
270 entitydefs = {}
271 for name, char in _html_entities.entitydefs.items():
272 uc = latin_1_decode(char)[0]
273 if uc.startswith("&#") and uc.endswith(";"):
274 uc = unescape_charref(uc[2:-1], None)
275 entitydefs["&%s;" % name] = uc
276 else:
277 for name, codepoint in _html_entities.name2codepoint.items():
278 entitydefs["&%s;" % name] = _unichr(codepoint)
279 return entitydefs
280
281def issequence(x):
282 try:

Callers 1

__init__Method · 0.85

Calls 2

unescape_charrefFunction · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…