HTML Encoder / Decoder

Convert special characters to HTML entities and back.

Minimal mode encodes only the four characters required for safe HTML embedding (& < > "). Full mode additionally encodes all non-ASCII characters as numeric entities (&#NN;), useful for ASCII-only environments.