class_docstr: Extract raw HTML from text.
  
  The raw HTML is stored in the [`htmlStash`][markdown.util.HtmlStash] of the
  [`Markdown`][markdown.Markdown] instance passed to `md` and the remaining text
  is stored in `cleandoc` as a list of strings.
docstr: Handle any buffered data.
docstr_tok: ["Handle","any","buffered","data","."]
code: def close(self):
      """Handle any buffered data."""
      super().close()
      if len(self.rawdata):
          # Temp fix for https://bugs.python.org/issue41989
          # TODO: remove this when the bug is fixed in all supported Python versions.
          if (
              self.convert_charrefs and not self.cdata_elem
          ):  # pragma: no cover
              self.handle_data(htmlparser.unescape(self.rawdata))
          else:
              self.handle_data(self.rawdata)
      # Handle any unclosed tags.
      if len(self._cache):
          self.cleandoc.append(
              self.md.htmlStash.store("".join(self._cache))
          )
          self._cache = []
  
imports: from __future__ import annotations
  import re
  import importlib.util
  import sys
  from typing import TYPE_CHECKING, Sequence
label_desc: Use image node_id 3 for calling the HTMLExtractor obj's underlying member method code with example usage: obj.close() without return types