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)
| 430 | {'lt': '<', 'gt': '>', 'amp': '&', 'quot': '"', 'apos': '\''} |
| 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.""" |
no outgoing calls
no test coverage detected