Shopify admin panel is allowing store owner to add HTML description for a product. I want to load HTML product description on a post purchase page. I am using React to create post purchase page. How can I do that? Need some help with this please!
I am creating app which opens post purchase page using shopify post purchase extension. I want to load HTML product description into that page. I am using React framework.
I am able to fetch product description. But it is not rendering properly on post purchase page. It is rendering like this.
I don't see any component which renders HTML content - https://shopify.dev/api/checkout-extensions/components
strip_html is for liquid templates. I am not using liquid. I am using React framework. This are the components which we can use for post purchase page: https://shopify.dev/api/checkout-extensions/components
Not working. Also I don't want to remove HTML tags. I want to render that HTML content using that HTML so it renders as expected,
strip_html will not work in this scenario. I don't want to remove HTML code from a string. I need HTML content to render as expected with the styling given by user.
Per Shopify's documentation - you can not render native HTML on post purchase. You must convert that HTML markup into Shopify approved checkout-ui react components per https://shopify.dev/api/checkout-extensions/