Add character data to the output stream. Parameters ---------- text : str Character data.
(self, text)
| 182 | self.__write(f"<!-- {_escape_comment(comment)} -->\n") |
| 183 | |
| 184 | def data(self, text): |
| 185 | """ |
| 186 | Add character data to the output stream. |
| 187 | |
| 188 | Parameters |
| 189 | ---------- |
| 190 | text : str |
| 191 | Character data. |
| 192 | """ |
| 193 | self.__data.append(text) |
| 194 | |
| 195 | def end(self, tag=None, indent=True): |
| 196 | """ |