PromptShield logo PromptShield
API DocsFunctions

decodeUnicodeTags()

decodeUnicodeTags(text): string | undefined

Defined in: invisible.ts:298

Attempts to decode Unicode tag characters into ASCII text.

Unicode tag characters live in the range:

U+E0000 – U+E007F

Each tag character encodes an ASCII value using:

ASCII = codePoint − 0xE0000

This mechanism has been abused in multiple security reports to embed hidden instructions inside invisible character streams.

This decoder performs a best-effort extraction.

Parameters

text

string

Returns

string | undefined

On this page