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   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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: 147 / 156
Referenced in: [show references]

Formerly at http://tinybrain.de/1016284 & http://1016284.tinybrain.de