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?