blark.html.lark_item_to_element

blark.html.lark_item_to_element(item: Tree | Token, source_code: str, output_pos: int) tuple[Element, int][source]

Convert a lark item to an lxml element. Return the element and the position in the source code after this item.