10 lines
244 B
Text
10 lines
244 B
Text
1) define a new javascript primitive:
|
|
{script
|
|
LAMBDATALK.DICT['decodeURIComponent'] = function() {
|
|
return decodeURIComponent( arguments[0].trim() );
|
|
};
|
|
}
|
|
|
|
2) and use it:
|
|
{decodeURIComponent http%3A%2F%2Ffoo%20bar%2F}
|
|
-> http://foo bar/
|