query
On this page

escape

lib.strings.escape

Docs pulled from | This Revision | 32 minutes ago


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

Inputs

list

1. Function argument

Type

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

Examples

escape usage example

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

Noogle also knows

Aliases