hello im currently express this var with
var consultRemark = "1. Valid Date : 1 Week , Based on Quote Date \r\n " + " 2. Payment Condition : Cash only Conditions may Apply. \r\n " + "3. Period : may changed after customer's deal.";
var action = component.get("c.getInitData");
Best Answer
<aura:unescapedHTML>
tag should be used here. And instead of\r\n
, use HTML tag<br/>
for line breaks.https://developer.salesforce.com/docs/component-library/bundle/aura:unescapedHtml/specification
To put new lines in Lightning:inputRichText, replace
<br/>
with<p/>