dhtmlparser3.tags.tag¶
Bases:
object
Name of the parsed tag.
Type: str
Dictionary for the parameters.
Type: SpecialDict
List of sub-elements.
Type: list
Reference to parent element.
Type: Tag
Shortcut for .parameters, used extensively in tests.
Shortcut for .content, used extensively in tests.
Same as .c, but returns only tag instances. Useful for ignoring whitespace and comment clutter and iterating over the real dom structure.
Make the DOM hierarchy double-linked. Each content element now points to the parent element.
Return content but remove all tags.
This is sometimes useful for processing messy websites.
Remove offending_item anywhere from the dom.
Item is matched using is operator, so it better be something you’ve found using .find() or other relevant methods.
Returns: True if the item was found and removed. Return type: bool
Remove the item from the .content property.
If the item is Tag instance, match it using tag name and parameters.
Get HTML representation of the tag and the content.
Convert just the tag with parameters to string, without content.
Return everything in between the tags as string.