(self, text, escape=1)
| 708 | self.elementstack[-1][2].append(text) |
| 709 | |
| 710 | def handle_data(self, text, escape=1): |
| 711 | # called for each block of plain text, i.e. outside of any tag and |
| 712 | # not containing any character or entity references |
| 713 | if not self.elementstack: return |
| 714 | if escape and self.contentparams.get('type') == 'application/xhtml+xml': |
| 715 | text = _xmlescape(text) |
| 716 | self.elementstack[-1][2].append(text) |
| 717 | |
| 718 | def handle_comment(self, text): |
| 719 | # called for each comment, e.g. <!-- insert message here --> |
no test coverage detected