mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
517ecb85f5
Problem: vim.json.encode escapes every slash in string values (for example in file paths), and is not optional. Use-case is for preventing HTML injections (eg. injecting `</script>` closing tag); in the context of Nvim this is rarely useful. Solution: - Add a `escape_slash` flag to `vim.json.encode`. - Defaults to `false`. (This is a "breaking" change, but more like a bug fix.) |
||
---|---|---|
.. | ||
api_keysets_extra.lua | ||
api_keysets.lua | ||
api.lua | ||
base64.lua | ||
builtin_types.lua | ||
builtin.lua | ||
diff.lua | ||
json.lua | ||
lpeg.lua | ||
misc.lua | ||
mpack.lua | ||
options.lua | ||
re.lua | ||
regex.lua | ||
spell.lua | ||
vimfn.lua | ||
vvars.lua |