pyorg.convert.html.element module¶
-
class
pyorg.convert.html.element.
HtmlElement
(tag, children=None, attrs=None, inline=False, post_ws=False)[source]¶ Bases:
object
Lightweight class to represent an HTML element.
-
inline
¶ Whether to render children in an inline context. If False each child will be rendered on its own line. If True whitespace will only be added before/after children according to the
post_ws
attribute of the child.Type: bool
-
classes
-