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

Method convert_entityref

lib/utils/sgmllib.py:432–442  ·  view source on GitHub ↗

Convert entity references. As an alternative to overriding this method; one can tailor the results by setting up the self.entitydefs mapping appropriately.

(self, name)

Source from the content-addressed store, hash-verified

430 {'lt': '<', 'gt': '>', 'amp': '&', 'quot': '"', 'apos': '\'&#x27;}
431
432 def convert_entityref(self, name):
433 """Convert entity references.
434
435 As an alternative to overriding this method; one can tailor the
436 results by setting up the self.entitydefs mapping appropriately.
437 """
438 table = self.entitydefs
439 if name in table:
440 return table[name]
441 else:
442 return
443
444 def handle_entityref(self, name):
445 """Handle entity references, no need to override."""

Callers 2

_convert_refMethod · 0.95
handle_entityrefMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected