Hey guys,
when you tag an element in Indesign, you get 
 for linebreaks. I need this to be 

I tried the following:
for(i = 0; i < myDocument.selection.length; i++){
current = myDocument.selection;
currentText[i] = current[i].contents;
currentText[i].replace('
','
');
}
Any suggestions? Thanks in advance!