Hey!
Asked on the Javascript Forum, and this chap came up with this... Seems to be working fine!
stop ();
// Set input beginning text...
test = "<b>INPUT</b><i>BlaBlaBla</i>";
// Dynamic textfield (test2) without html checked
test2 = strip(test);
//
function strip (str) {
var left = "<";
var right = ">";
var first = str.indexOf(left);
var last = str.indexOf(right);
while ((first>=0) && (last>first)) {
var part1 = str.substring(0, first);
var part2 = str.substring(last+1, str.length);
str = part1+part2;
first = str.indexOf(left);
last = str.indexOf(right);
}
return str;
}
//
trace (test2);
Gave him my vote (which you can't give me - not being registered), and best wishes for the New Year!
Same to you, if you ever come back!
Regards,
ldnewbie