docs: def _get_encoding(dom, default="utf-8"):
      """
      Try to look for meta tag in given `dom`.
  
      Args:
          dom (obj): pyDHTMLParser dom of HTML elements.
          default (default "utr-8"): What to use if encoding is not found in
                                     `dom`.
  
      Returns:
          str/default: Given encoding or `default` parameter if not found.
      """
      encoding = dom.find("meta", {"http-equiv": "Content-Type"})
  
      if not encoding:
          return default
  
      encoding = encoding[0].params.get("content", None)
  
      if not encoding:
          return default
  
      return encoding.lower().split("=")[-1]