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

6
LINES

< > BotCompany Repo | #1000856 // htmlunquote

JavaX fragment (include)

1  
static String htmlunquote(String s) {
2  
  if (s.startsWith("'") && s.endsWith("'") && s.length() >= 2
3  
    || s.startsWith("\"") && s.endsWith("\"") && s.length() >= 2)
4  
    s = s.substring(1, s.length()-1);
5  
  return htmldecode(s);
6  
}

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: #1000856
Snippet name: htmlunquote
Eternal ID of this version: #1000856/1
Text MD5: f255b39f0244095478ff39e51be75296
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-30 17:34:20
Source code size: 234 bytes / 6 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 739 / 941
Referenced in: [show references]