rem: var text = new String($(textfield).value); text = text.replace(/&/g,'%26'); text = text.replace(/=/g,'%3D'); 
add: var text = $(textfield).value; text = encodeURIComponent(text); 
context: function showPreview(textfield, baseurl, field){    var preview = $('preview');    emptyElement(preview);        var img = document.createElement('img');    img.src = baseurl + 'themes/Bluey/ajax_load.gif';    img.id = 'temp_img';    img.alt = 'Loading...';    preview.appendChild(img);        var text = new String($(textfield).value);    text = text.replace(/&/g,'%26');    text = text.replace(/=/g,'%3D');    var url = baseurl + 'javascript/callbacks/getpreview.php';    var myAjax = new Ajax.Updater(field, url, {parameters:'text=' + text, method: 'post'});    if (text == '') {        hidestuff(field);    } else {        showstuff(field);    }}
meta: 6601	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6601/9a098dfa6f5ad846121edd3f81d387f5cbc57c21/functions.js/buggy/javascript/functions.js