Hello,
I’m trying to bulk upload using a CSV file. Each product needs rich HTML content in the “Body (HTML)” field, including and nested tags with styles and links.
The problem is that after importing, the HTML structure gets badly broken:
-
tags get embedded inside style attributes
-
& characters are auto-converted to &, causing links to break
-
Closing tags like are missing or misinterpreted
-
In Shopify, the button/link no longer works as intended
Here’s what I’ve already tried:
-
Replacing all double quotes (") with single quotes (')
-
Escaping ampersands (& → &)
-
Flattening the HTML into a single line
All of these methods still result in broken HTML upon import.
I’m aware that Shopify has limitations when importing HTML via CSV, and that metafields or APIs may be a better option. But before I go that route, I’d like to know:
-
Is there a known safe way to embed full HTML (including nested tags) in the “Body (HTML)” field during CSV import?
-
Are there Shopify apps or recommended workflows for handling this kind of use case (e.g. Metafields Guru, Admin API, etc.)?
Any advice or real-world examples would be greatly appreciated. I just want a scalable way to manage this without manually editing 1,000+ products.
Thank you!