Navigation :
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.
verbatim: a text that may contain special characters that need to be escaped.
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