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

3
LINES

< > BotCompany Repo | #1007864 // hcommentSafe - make HTML comment. escapes contents

JavaX fragment (include)

static S hcommentSafe(S text) {
  ret hcomment_unescaped(contains(text, "-->") ? htmlencode(text) : text);
}

Author comment

Began life as a copy of #1003230

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: #1007864
Snippet name: hcommentSafe - make HTML comment. escapes contents
Eternal ID of this version: #1007864/3
Text MD5: 35ca685ccdd9223d7a9f13c96c0ea4f7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-27 02:25:31
Source code size: 110 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 440 / 461
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007899 - hsafeComment - synonym of hcommentSafe