## HttpUtility::HtmlEncode(const SharedPtr\<Object\>\&) method


Encodes Html fragment.

```cpp
static String System::Web::HttpUtility::HtmlEncode(const SharedPtr<Object> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const SharedPtr\<Object\>\& | Html fragment to encode. |

### ReturnValue

Encoded Html fragment.

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [HttpUtility](../)
* Namespace [System::Web](../../)
* Library [Aspose.PDF for C++](../../../)
## HttpUtility::HtmlEncode(const String\&) method


Encodes Html fragment.

```cpp
static String System::Web::HttpUtility::HtmlEncode(const String &str)
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | Html fragment to encode. |

### ReturnValue

Encoded Html fragment.

## See Also

* Class [String](../../../system/string/)
* Class [HttpUtility](../)
* Namespace [System::Web](../../)
* Library [Aspose.PDF for C++](../../../)
## HttpUtility::HtmlEncode(const String\&, const SharedPtr\<IO::TextWriter\>\&) method


Encodes Html fragment.

```cpp
static void System::Web::HttpUtility::HtmlEncode(const String &str, const SharedPtr<IO::TextWriter> &output)
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | Html fragment to encode. |
| output | const SharedPtr\<IO::TextWriter\>\& | A TextWriter object for output. |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TextWriter](../../../system.io/textwriter/)
* Class [HttpUtility](../)
* Namespace [System::Web](../../)
* Library [Aspose.PDF for C++](../../../)
