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

Method _convert_ref

lib/utils/sgmllib.py:313–321  ·  view source on GitHub ↗
(self, match)

Source from the content-addressed store, hash-verified

311
312 # Internal -- convert entity or character reference
313 def _convert_ref(self, match):
314 if match.group(2):
315 return self.convert_charref(match.group(2)) or \
316 '&#%s%s' % match.groups()[1:]
317 elif match.group(3):
318 return self.convert_entityref(match.group(1)) or \
319 '&%s;' % match.group(1)
320 else:
321 return '&%s' % match.group(1)
322
323 # Internal -- parse endtag
324 def parse_endtag(self, i):

Callers

nothing calls this directly

Calls 2

convert_charrefMethod · 0.95
convert_entityrefMethod · 0.95

Tested by

no test coverage detected