escapelike

escapelike, function

def pure const escapelike(verbatim: text): text

Escapes all like operator special characters in verbatim such that verbatim like escapelike(verbatim) is true and does not report any errors.

Example

table T = with 
  [| as Verbatim |]
  [| "ABC" |]
  [| "A*C" |]
  [| "[*]" |]
  [| "10%" |]
  [| "\\_" |]

show table "Escaped" with 
  T.Verbatim
  escapelike(T.Verbatim)

Outputs the following table:

Verbatim escapelike(T.Verbatim)
ABC ABC
A*C A[*]C
[*] [[][*]]
10% 10[%]
\_ [\][_]

See also

User Contributed Notes
0 notes + add a note