> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.retrieve_utils.parse_html_to_markdown

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### parse\_html\_to\_markdown

```python theme={null}
parse_html_to_markdown(html: str, url: str = None) -> str
```

Parse HTML to markdown.

<b>Parameters:</b>

| Name   | Description                                |
| ------ | ------------------------------------------ |
| `html` | **Type:** str                              |
| `url`  | **Type:** str<br /><br />**Default:** None |

<br />
