1 | // automagically encode a whole map (keys+values) |
2 | static Map htmlencodeMap(Map o) {
|
3 | new HashMap bla; |
4 | for (O key : keys(o)) {
|
5 | O value = o.get(key); |
6 | bla.put(htmlencode(key), htmlencode(value)); |
7 | } |
8 | ret bla; |
9 | } |
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: | 595 / 636 |
| Referenced in: | [show references] |