Javascript replace text in selection
I know this is simple, but I can't seem to find/replace text in a variable that contains a portion (one line) of text that has been selected in an InDesign document.
Here is the code fragment:
myLine = app.activeDocument.selection[0].paragraphs[iLoop].contents;
myLine = myLine.replace("<","");
myLine = myLine.replace("=","\t");
I 'alert' the value of myLine after the code executes and the wedge and = characters are still there.
Thanks in advance for any help.
