basic html escaping
(self, txt)
| 101 | return highlight(self.src, lexer, formatter) |
| 102 | |
| 103 | def _escape(self, txt): |
| 104 | """ basic html escaping """ |
| 105 | txt = txt.replace('&', '&') |
| 106 | txt = txt.replace('<', '<') |
| 107 | txt = txt.replace('>', '>') |
| 108 | txt = txt.replace('"', '"') |
| 109 | return txt |
| 110 | |
| 111 | def _number(self, txt): |
| 112 | """ Use <ol> for line numbering """ |