Saturday, October 18, 2008

Actionscript find hidden line breaks

function insertBreaks(theText) {
newText = "";
for (i=0; i if (theText.charAt(i) == String.fromCharCode(13)) {
newText += "
";
} else {
newText += theText.charAt(i);
}
}
return (newText);

}

No comments: