lave & om til and
Jeg har et jscript, som nu skal laves i asp.Det ændre tegnet & om til and.
Er der en der gider hjælpe mig med det i asp?
<SCRIPT LANGUAGE="JavaScript">
function replaceChars(entry) {
out = "&"; // replace this
add = "and"; // with this
temp = "" + entry; // temporary holder
while (temp.indexOf(out)>-1) {
pos= temp.indexOf(out);
temp = "" + (temp.substring(0, pos) + add +
temp.substring((pos + out.length), temp.length));
}
document.subform.text.value = temp;
}
</script>
