I'm using resolveTaskLink to convert a custom reco...
# suitescript
p
I'm using resolveTaskLink to convert a custom record into a sales order. One of the fields in the custom record is a text area field whose value is going into another text area field in the sales order. When the sales order is created the line breaks are coming in as <br> tags instead of the actual line break. I tried removing the <br> tag using .replace like below that had no effect.
var puaddress = pickupaddress;
var fixpuaddress = puaddress.replace(/<br>/g," ");
How can I have the field in the sales order include the line breaks but not the <br> tag?
d
does this work? <https://stackoverflow.com/questions/8062399/how-to-replace-an-html-br-with-newline-character-n%7Cjavascript - How to replace an HTML <br> with newline character "\n"? - Stack Overflow>