---
title: "Aspose::Email::Common::Transform::HtmlToTextConverter::Convert method"
url: "https://reference.aspose.com/email/cpp/aspose.email.common.transform/htmltotextconverter/convert/"
product: "Aspose.Email for C++"
description: "Converts the given HTML to plain text and returns the result."
---


## Convert (1 of 2) {#convert_1}

Converts the given HTML to plain text and returns the result.

**Returns:** Resulting plain text

```cpp
Convert(System::String html, bool showUrl)
```

| Parameter | Description |
| --- | --- |
| html | HTML to be converted |

---

## Convert (2 of 2) {#convert_2}

**Returns:** System::String Aspose::Email::Common::Transform::

```cpp
Convert(System::String html, HyperlinkRenderingCallback hyperlinkRenderingCallback)
```

| Parameter | Description |
| --- | --- |
| html |  |
| hyperlinkRenderingCallback |  |

