Salesforce Lightning Experience

Salesforce

lightning-record-edit-form and lightning-record-view-form example Salesforce LWC

Sample Code: Aura Component: <aura:component implements="force:lightningQuickAction,force:hasRecordId"> <c:caseEscalation recId="{!v.recordId}"/> </aura:component> Lightning Web Component(LWC): LWC HTML: <template> <div class="slds-m-around_medium"> <template if:true={newBool}> <lightning-record-edit-form object-api-name="Case" onsuccess={handleCreate} record-type-id="0123i000000IC1dAAG"> <lightning-messages></lightning-messages> <div class="slds-grid slds-wrap"> <div class="slds-col slds-size_1-of-2"> ....

Salesforce

How to get content from lightning:inputRichText without HTML Tags?

Sample Code: Lightning Component: <aura:component implements = "force:appHostable">              <aura:attribute name="myVal" type="String" />              <div class="slds-box slds-theme_default">                      <lightning:inputRichText value = "{!v.myVal}"/>           <lightning:button variant = "brand" label = "Show" onclick = "{! c.handleClick }"/>                  </div>          </aura:component>   Lightning Component Controller: ({              handleClick : function(component, event, helper) {                      var tempVal = component.get("v.myVal");           var tempDivElement = document.createElement("div");           tempDivElement.innerHTML = tempVal;           alert( "With HTML Tags " + tempVal );           tempVal = tempDivElement.textContent;           alert( "Without HTML Tags " + tempVal );              ....