clear

[internal] clear html text and DOM tree.

Source


def clear(self):
    self._html = ''
    self._url = None
    self._nodes = pyNodeList()
    self._is_started = False
    del self._dom[:]