code: def quote_html(html, limit=1000):
      
      from . import _html
  
      tree = _html.get_html_tree(html)
  
      start_refs, end_refs, lines = _html.get_line_info(tree, limit+1)
  
      found = _internal.find_quote_position(lines, 1, limit)
  
      if found == None:
          # No quoting found and we're below limit. We're done.
          return [(True, _html.render_html_tree(tree))]
      else:
          start_tree = _html.slice_tree(tree, start_refs, end_refs,
                                        (0, found+1), html_copy=html)
          end_tree   = _html.slice_tree(tree, start_refs, end_refs,
                                        (found+1, None))
  
      return [
          (True, _html.render_html_tree(start_tree)),
          (False, _html.render_html_tree(end_tree)),
      ]
docs: Like quote(), but takes an HTML message as an argument. The limit param
      represents the maximum number of lines to traverse until quoting the rest
      of the markup. Lines are separated by block elements or <br>.