Skip to content

Tag: LWC limitations

Visualforce-Based Solution to Display Raw HTML from API Responses in Salesforce (Workaround for LWC Limitations)

This article demonstrates a workaround of the limitation of LWC for displaying the HTML content retrieve through the external API endpoint.
I used Visualforce Page to render the RAW HTML using an iframe of the child VF page. This approach ensures that when the page loads, the HTML is retrieved directly from the API and rendered correctly in the browser, without being affected by LWC’s content security restrictions.