import { escape } from "https://deno.land/x/denops_std@v6.1.0/function/mod.ts";
Escape the characters in {chars} that occur in {string} with a backslash. Example:
:echo escape('c:\program files\vim', ' \')
results in:
c:\\program\ files\\vim
Also see shellescape()
and fnameescape()
.
Can also be used as a method
:
GetText()->escape(' \')