So say the text value of my column field is `A &am...
# suitescript
j
So say the text value of my column field is
A & B
and I do:
Copy code
console.log('My value is !' + nlapiGetCurrentLineItemText(sublist_id, 'custrecord_my_field') + '!');
I get
Copy code
My value is !A & B
!
s
Maybe you could try an alternative ampersand symbol, like the Fullwidth Ampersand: https://unicode-table.com/en/FF06/
Just to see if it's only that specific character that does this
j
interesting, that does fix it, though it’s not an ideal solution. I’m just going to str.replace the rogue newlines