1

I am currently trying to import an excel spreadsheet that contains product data for products on my website.

Of the various fields available for product import, one of them is the product description. In this cell, I paste the HTML data that I wish to be displayed on that product.

However, it would seem that sometimes excel decides to format this data on it's own, and after importing, the HTML is all screwed up. It's strange, because this does not happen on every product.

I've tried formatting the cells as "text", but that seems to have no effect. When I paste the values from the cell into notepad, I can see that every singe quote symbol (") has been doubled. For what reason, I have no idea.

The data looks correct when viewed in the cell, but it does not import properly, and the data is visibly changed when copied and pasted out of excel.

Any ideas on how to remedy this? How can I get excel to just ignore the data?

4

1 に答える 1

0

Try putting the HTML code in a single line with no breaks. For example:

<html><body><p><div id="PDG-Team-Image">Test</body></html>

I ran a quick test using the above simple HTML snippet. In Column A, I put the code with line breaks. In column B, I put the code with no breaks. I then copied the cell A1 and pasted it into Notepad, and then copied B1 and pasted it into Notepad. You'll see the first paste (A1) has the double quotes. The second paste (B1) has no double quotes.

enter image description here

于 2013-01-29T14:35:37.900 に答える