I have LWC component that creates new record using lighting record edit form and then on search displays the record in Lightning-datatable. # However the new record created are showing the html tags for the Rich text area fields whereas this doesn't happen for the records already created. Is there any way to remove them? TIA
HTML:
<div class="slds-col slds-order_2">
<lightning-button label="Add New" variant="brand" onclick={navigateToNew}>
</lightning-button>
</div>
<template if:true={isDataLoaded}>
<div style="height: 300px;">
<lightning-datatable key-field="id"
columns={columns}
data={searchData}
hide-checkbox-column
sorted-by={sortedBy}>
</lightning-datatable>
</div>
</template>
JS:
navigateToNew() {
this[NavigationMixin.Navigate]({
type: 'standard__objectPage',
attributes: {
objectApiName: 'Custom Object',
actionName: 'new'
}
});
}
<p>
markup go away? Will prob need to see more of your code...