> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/encode-html.md).

# Encode HTML

## Description

The encode\_html part is used for ensuring text will be accurately shown by a browser by escaping special characters in strings used in HTML documents to prevent confusion with HTML elements.

## Use

The process of ‘HTML encoding’ involves replacing certain characters (such as < and >) with a particular ‘escape sequence’ of characters that a browser knows how to display and that don’t interfere with browser rendering. The encode\_html part applies HTML encoding to a specified string. This is useful as a quick method of encoding form data and other client request data before using it in your Web application. Encoding data converts potentially unsafe characters to their HTML-encoded equivalent.

## Editor Fields

| Field Name    | Description/Use                                                                                                                                                                                               | Type/Options     | Optional/Mandatory |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------ |
| Mode          | <p><strong>Processing</strong> - Output path is enabled and you can use the result for further processing.<br><strong>Presenting</strong> - Output path is disabled and the part is executed immediately.</p> | Data Object/Text | Mandatory          |
| Input path    | This specifies the path or variable that contains the text you want to encode.                                                                                                                                | Text             | Mandatory          |
| Function mode | This is where you choose if you want to **Encode** or **UnEncode** the text.                                                                                                                                  | Text             | Mandatory          |

## Example

Download and import the following [example project](/release-9/example-gallery/example-projects-for-parts/encode-html-example-project.md) in your workspace.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/encode-html.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
