(self, text, escape=1)
| 767 | self.elementstack[-1][2].append(text) |
| 768 | |
| 769 | def handle_data(self, text, escape=1): |
| 770 | # called for each block of plain text, i.e. outside of any tag and |
| 771 | # not containing any character or entity references |
| 772 | if not self.elementstack: |
| 773 | return |
| 774 | if escape and self.contentparams.get('type') == u'application/xhtml+xml': |
| 775 | text = _xmlescape(text) |
| 776 | self.elementstack[-1][2].append(text) |
| 777 | |
| 778 | def handle_comment(self, text): |
| 779 | # called for each comment, e.g. <!-- insert message here --> |
no test coverage detected