AVX::ESCAPE
AVX::ESCAPE function has been designed to escape non-alphanumeric characters in user or third-party inputs when processed by an operating system shell. The function loops through each character in the input string and escapes any character that is not alphanumeric. It returns a new string where unsafe characters are prefixed with a backslash (\), ensuring they are interpreted as literal characters rather than part of the shell command.
Usage: Script task when executing a python script with special or
non-alphanumeric characters.
variable1 = "a b"
variable2 = "'id'"
variable3 = "$(test)"
esc1 = AVX::ESCAPE(variable1)
esc2 = AVX::ESCAPE(variable2)
esc3 = AVX::ESCAPE(variable3)
AVX::LOG(esc1)
AVX::LOG(esc2)
AVX::LOG(esc3)
AVX::OUTPUT({})The above python script has three variables:
- Variable 1 has a space "a b"
- Variable 2 has quotes "
'id'" - Variable 3 has a $ symbol $(test)
The above three cases will be escaped with the backslash (\)when executing the script.


