query
On this page

escape

lib.escape



Escape occurrence of the elements of list in string by prefixing it with a backslash.

Example

escape ["(" ")"] "(foo)"
=> "\\(foo\\)"

Type

escape :: [string] -> string -> string

Arguments

  • [list]
(lib.strings.escape)

Noogle also knows

Aliases