forked from darktable-org/lua-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
sanitize
deekayhd edited this page Mar 29, 2026
·
1 revision
sanitize
surround a string in quotes making it safe to pass as an argument
local ds = require "lib/dtutils.string"
local result = ds.sanitize(str)str - string - the string that needs to be made safe
sanitize converts a string into a version suitable for use passing as an argument in a system command.
result - string - a websafe string