Skip to main content

lua_escape

Function lua_escape 

Source
pub fn lua_escape(s: &[u8]) -> Vec<u8> ⓘ
Expand description

Escapes a string for use inside a Lua string literal (\luaescapestring): backslash, double quote, newline and carriage return get backslash escapes. NUL stays as is, like in LuaTeX (an escape \0 would swallow following digits, as in \01).