Show More
@@ -337,6 +337,14 b' class HTML(DisplayObject):' | |||||
337 | def _repr_html_(self): |
|
337 | def _repr_html_(self): | |
338 | return self.data |
|
338 | return self.data | |
339 |
|
339 | |||
|
340 | def __html__(self): | |||
|
341 | """ | |||
|
342 | This method exists to inform other HTML-using modules (e.g. Markupsafe, | |||
|
343 | htmltag, etc) that this object is HTML and does not need things like | |||
|
344 | special characters (<>&) escaped. | |||
|
345 | """ | |||
|
346 | return self._repr_html_() | |||
|
347 | ||||
340 |
|
348 | |||
341 | class Math(DisplayObject): |
|
349 | class Math(DisplayObject): | |
342 |
|
350 |
General Comments 0
You need to be logged in to leave comments.
Login now