INNER CODE UNIT · JavaScript

encode

t3l3machus/toxssin · toxin.js:13

    function encode(s){ return encodeURIComponent(s).replace(/%20/g,'+'); }
    
    for (var pair of fd.entries()) {
        if (typeof pair[1] == 'string') {
            s += (s?'&':'') + encode(pair[0]) + '=' + encode(pair[1]);
        }
    }
    return s;
};


function rewriteDocument(html) {

	var doc = document.open("text/html");
	doc.write(html);
	doc.close();
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…