@ESCAPIFY — Returns the string, with troublesome characters escaped.

Syntax:
%@ESCAPIFY[string]

stringstring to be escapified

This function returns the input string, with troublesome characters replaced by C-style character escape sequences. See Escapification for more details.

You can use the CESC_CHARS and CESC_FLAGS environment variables to tweak the way text is escapified.

echo %@escapify[<p>This is a test.</p>]

See also: @EXP, which performs the reverse operation, expanding escape sequences in a string.