APImcp
GuidesText Processing
ConsoleDocsMCP
Text Processing ⏱ 1 min read

HTML Encoder/Decoder API

Encode or decode HTML entities for safe rendering. Prevents XSS.

01

What is HTML Encoding?

Converts special characters (&, <, >, ", ') to HTML entities. Prevents XSS and broken rendering.

02

How to Use

Call GET /api/v1/html-encoder?text=<script>alert('xss')</script>&mode=encode.

Try it live Test this endpoint in the interactive console
Open Console →

Frequently Asked Questions

Entities covered?
Five critical: &amp, &lt, &gt, &quot, &#39. Sufficient to prevent XSS in HTML contexts.