module documentation
Utilities related to Stan tree building and HTML flattening.
| Function | flatten |
Convert a document fragment from a Stan tree to HTML. |
| Function | flatten |
Return the text inside a stan tree. |
| Function | html2stan |
Convert an HTML string to a Stan tree. |
| Constant | _RE |
Undocumented |
Convert a document fragment from a Stan tree to HTML.
| Parameters | |
stan:Flattenable | Document fragment to flatten. |
| Returns | |
str | An HTML string representation of the stan tree. |
Convert an HTML string to a Stan tree.
| Parameters | |
html:bytes | str | An HTML fragment; multiple roots are allowed. |
| Returns | |
Tag | The fragment as a tree with a transparent root node. |
| Raises | |
xml.sax.SAXParseException | If XMLString fails to parse the html data. See https://github.com/twisted/twisted/issues/11581. |
Undocumented
| Value |
|