Escapes like operator special characters in verbatim so that
verbatim like escapelike(verbatim) is always true.
verbatim: the raw text to be escaped.
Examples
table T = with
[| as Verbatim |]
[| "ABC" |]
[| "A*C" |]
[| "[*]" |]
[| "10%" |]
[| "\\_" |]
show table "Escaped" with
T.Verbatim
escapelike(T.Verbatim) as "Escaped"
This produces the following table:
Verbatim
Escaped
ABC
ABC
A*C
A[*]C
[*]
[[][*]]
10%
10[%]
\_
[\][_]
Errors
The result of escapelike is a text value and is therefore limited to
256 UTF-8 bytes. If the escaped representation would exceed that limit,
escapelike fails with an error such as:
escapelike(): “…” escapes to more than 256 UTF-8 bytes.