Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1016284 // htmlencodeMap

JavaX fragment (include)

// automagically encode a whole map (keys+values)
static Map htmlencodeMap(Map o) {
  new HashMap bla;
  for (O key : keys(o)) {
    O value = o.get(key);
    bla.put(htmlencode(key), htmlencode(value));
  }
  ret bla;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016284
Snippet name: htmlencodeMap
Eternal ID of this version: #1016284/1
Text MD5: c064d86eeb3823fec0e20e077d10ca0c
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-13 04:01:08
Source code size: 228 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 285 / 320
Referenced in: [show references]