I have a lwc component having a standard lwc datatable. However, my datatable has an url field which needs to be displayed as a url. However, that particular field is coming up as the following format

  http://<a href="https://www.w3schools.com">b13</a>

I understand that this is because in datatables everything is rendered as text and never as a rich text. I am looking for any alternative ways to display the url in the correct format

I have tried using custom datatype by using the following sample


but I am getting resolution errors tying to implement it.

Failed to resolve import "./richTextColumnType.html"

So if anyone has any working examples for displaying richtext fields in datatable. That would be really helpful.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.