Thread: url decoder
View Single Post
Old 04-07-2004, 01:34 AM  
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
kinda like this, but with all the characters, and able to take input string from tgp script and send it to trade script...

function deCode() {
strSelection = hahahahahahahahahahaselection.createRange().text
strSelection = strSelection.replace(new RegExp("<","g"), "&lt;");
strSelection = strSelection.replace(new RegExp(">","g"), "&gt;");
hahahahahahahahahahaselection.createRange().text = strSelection;
return;
}
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote