escapelike

escapelike, function

def const pure escapelike(verbatim: text): text

Escapes like operator special characters in verbatim so that verbatim like escapelike(verbatim) is always true.

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[%]
\_ [\][_]

See also

User Contributed Notes
0 notes + add a note