dit werkt niet:
function replaceChars(entry) {
out = "\n"; // replace this
add = "<br>"; // 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));
}
replaceChars = temp;
}
iemand die weet hoe het wel moet?
function replaceChars(entry) {
out = "\n"; // replace this
add = "<br>"; // 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));
}
replaceChars = temp;
}
iemand die weet hoe het wel moet?