(self, c, fallback)
| 106 | self.last = "ref" |
| 107 | # Helpers. |
| 108 | def output_char(self, c, fallback): |
| 109 | if c == '<': |
| 110 | self.output += "<" |
| 111 | elif c == '>': |
| 112 | self.output += ">" |
| 113 | elif c == '&': |
| 114 | self.output += "&" |
| 115 | elif c == '"': |
| 116 | self.output += """ |
| 117 | elif c == None: |
| 118 | self.output += fallback |
| 119 | else: |
| 120 | self.output += c |
| 121 | |
| 122 | def is_block_tag(self,tag): |
| 123 | return (tag in ['article', 'header', 'aside', 'hgroup', 'blockquote', |
no outgoing calls
no test coverage detected