do you mind trying out this js function.
Code:
function clean(val) {
return val.replace(/^\n{2,}/g, '').replace(/\n{2,}$/g, '').replace(/\n{2,}/g, '\n');
}
here is how you can call it using your script
Code:
if(xmlHttp.readyState == 4 && xmlHttp.status == 200) {
// store processed response text
var getVal = xmlHttp.responseText;
// display the value to user
default_servs = getVal;
alert("var getVal = xmlHttp.responseText = " + clean(getVal));
}
let's know if that worked or not.
cheers,
Ess