guardDecode

Decodes a string that was encoded for a given context.

guardDecode(decodeFrom, string) → returns string

This function requires Lucee 7 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

decodeFrom string
Required

The encoding to reverse.

string string
Required

The encoded string.

Examples
Sample code invoking the guardDecode function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub