1 | sS hs_htmlencode_noJQuery() {
|
2 | ret hjavascript([[ |
3 | function htmlencode(str) {
|
4 | return str.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>') ; |
5 | } |
6 | ]]); |
7 | } |
Began life as a copy of #1027639
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1029506 |
| Snippet name: | hs_htmlencode_noJQuery |
| Eternal ID of this version: | #1029506/3 |
| Text MD5: | 2858e3ceab11e271b6b482bb57c9888b |
| Author: | stefan |
| Category: | javax / javascript |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-08-16 18:25:14 |
| Source code size: | 185 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 388 / 439 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |