Most important function here is parseString(), which is used to process string and create Document Object Model.
Parse string txt and return DOM tree consisting of single linked HTMLElement.
Parameters: |
|
---|---|
Returns: | Single conteiner HTML element with blank tag, which has whole DOM in it’s HTMLElement.childs property. This element can be queried using HTMLElement.find() functions. |
Return type: | obj |
Standard output from dhtmlparser is single-linked tree. This will make it double-linked.
Parameters: |
|
---|
Remove all tags from dom and obtain plaintext representation.
Parameters: | dom (str, obj, array) – str, HTMLElement instance or array of elements. |
---|---|
Returns: | Plain string without tags. |
Return type: | str |