diff options
Diffstat (limited to 'marigold.lua')
-rw-r--r-- | marigold.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/marigold.lua b/marigold.lua index ac0e061..02c9bbe 100644 --- a/marigold.lua +++ b/marigold.lua @@ -121,5 +121,11 @@ marigold.html = function(tbl, indent_level) indent, close) end +marigold.percentDecode = function(str) + return string.gsub(str, "%%(%x%x)", function(digits) + return string.char(tonumber(digits, 16)) + end) +end + return marigold |