Skip to main content
Module

x/denops_std/function/mod.ts>escape

📚 Standard module for denops.vim
Go to Latest
function escape
import { escape } from "https://deno.land/x/denops_std@v3.11.3/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(' ')

Parameters

denops: Denops
string: unknown
chars: unknown

Returns

Promise<unknown>