|
Copy and paste the formula below into the formula builder, making sure the reference to the text variable from Step 1 is accurate.
IF(ISBLANK({!PlainText}), "", SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE({!PlainText}, "<p dir=\"ltr\">", BR()), "<p>", BR()), "</p>", ""), "<br/>", BR()), "<br>", ""))
The formula scans the plain text and replaces common HTML tags like <p> or <br> with nothing, or, in some cases replaces the HTML tag with a line break using the BR() formula in Salesforce.
Step 3:
Use the formula as the resource to set field values on the task description or elsewhere in the flow.
|