Mercurial Hosting > luan
diff core/src/luan/modules/Html.luan @ 497:55f9f74f1e55
Http.request is now pure luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 17 May 2015 19:25:47 -0600 |
parents | 2f5cc9c2cbf0 |
children | 92c3d22745b8 |
line wrap: on
line diff
--- a/core/src/luan/modules/Html.luan Sat May 16 20:19:05 2015 -0600 +++ b/core/src/luan/modules/Html.luan Sun May 17 19:25:47 2015 -0600 @@ -13,6 +13,11 @@ local ipairs = Luan.ipairs local type = Luan.type local Io = require "luan:Io" +local URLEncoder = require "java:java.net.URLEncoder" + +function url_encode(s) + return URLEncoder.encode(s,"UTF-8") +end function process_url_tags(html) for i, v in ipairs(html) do