1 | sS hjs_htmlencode() {
|
2 | ret hjavascript([[ |
3 | function htmlencode(value){
|
4 | return $('<div/>').text(value).html();
|
5 | } |
6 | ]]); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013837 |
| Snippet name: | hjs_htmlencode - needs JQuery |
| Eternal ID of this version: | #1013837/3 |
| Text MD5: | 6c85b5a047ee255ec4b793684c1609f3 |
| Author: | stefan |
| Category: | javax / web |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-03-05 14:03:14 |
| Source code size: | 126 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 669 / 668 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |