Split an HTML document into sections based on specified header tags.
This method uses BeautifulSoup to parse the HTML content and divides it into
sections based on headers defined in headers_to_split_on. Each section
contains the header text, content under the header, and the tag name.
| Name | Type | Description |
|---|---|---|
html_doc* | str | The HTML document to be split into sections. |