Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting %3D to >

Status
Not open for further replies.

elegidito

Programmer
Jan 19, 2002
358
how would I write a script to change all the %3D and %20 to > and a space. for example:
this : %3Cfont%20color%3D%22white%22%3ETHIS%20IS%20THE%20COOKIE%20VALUE%3C/font%3E
would be: <font color=&quot;white&quot;>THIS IS THE COOKIE VALUE</font>

thanks
The pen is mightier than the sword.
 
use the
Code:
unescape()
function:
Code:
var blanketyBlank = unescape(urlText);
It will &quot;decode&quot; it (Yes, I've heard people call it &quot;encoding&quot;).
And here's how you &quot;encode&quot; it:
Code:
var urlText = escape(blanketyBlank);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top