---
title: "encode:html — Encode HTML"
description: "iXML command encode:html: Encode HTML."
canonical_url: "https://www.zeyos.com/ixml/ref/encode-html"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/encode-html.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# encode:html — Encode HTML

ENCODE:HTML encodes a value by converting special reserved characters to their applicable HTML entites and whitespace characters to a meaningful HTML representation.

ENCODE:HTML is compatible to the DECODE:HTML operation, but not the complement thereof.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: string

### Examples

```xml
<output>
	<encode:html>Hello World!&n;My name is "iXML" &amp; I am a XML derivative!</encode:html>
</output>

<!-- Hello World!<br />My name is &quot;iXML&quot; &amp; I am a XML derivative! -->
```
