# Kodér HTML entit

> Zakódujte znaky < > &, uvozovky pro bezpečné použití v HTML nebo dekódujte entity jako &amp; a &#39; zpět na text. Volitelné číselné entity. Zdarma.

Free tool by Orkosi. Page: https://orkosi.com/tools/html-entity-encoder?lang=cs

Zobrazte kód na webové stránce, aniž by ho prohlížeč spustil, nebo přečtěte text plný sekvencí &amp; a &#39;. Kódujte a dekódujte na jednom místě.

1. Vložte text nebo HTML.
2. Vyberte možnost Kódovat nebo Dekódovat.
3. Stiskněte tlačítko Převést a výsledek zkopírujte.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `text` | text | yes | Text nebo HTML. |
| `mode` | "encode" \| "decode" | no | Akce. Default: "encode". |
| `non_ascii` | true \| false | no | Kódovat také akcenty a symboly. Default: false. |

## Example

Input:

```json
{
  "text": "<a href=\"/pricing\">Plans & pricing</a>",
  "mode": "encode"
}
```

Result:

```json
{
  "output": "&lt;a href=&quot;/pricing&quot;&gt;Plans &amp; pricing&lt;/a&gt;"
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "html-entity-encoder", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/html-entity-encoder/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"text":"<a href=\"/pricing\">Plans & pricing</a>","mode":"encode"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Které znaky je nutné v HTML kódovat?**

Ampersand, znaky menší než a větší než a uvnitř atributů také dvojité a jednoduché uvozovky. Těchto pět znaků tento nástroj kóduje.

**Kdy mám kódovat znaky mimo ASCII?**

Pouze když stránka nebo e-mailový systém nepoužívá UTF-8. Akcenty a symboly jsou pak bezpečnější jako číselné entity, například &#233;.

**Podporuje dekódování pojmenované entity?**

Běžné entity (amp, lt, gt, quot, apos, nbsp, copy, reg, trade, euro, pound, hellip, pomlčky a úhlové uvozovky) a všechny číselné entity.

All free tools: https://orkosi.com/tools.md
