Trying to save a div content in excel, not working. Help!

Aronax

Client
Регистрация
29.01.2015
Сообщения
205
Благодарностей
59
Баллы
28
I am trying to save the content of a div in an .xlsx file. This div contains a table which looks like this:

<div class="compare-wrap">
<div class="size-title"><span class="size-index">1</span>Size Chart</div>

<table class="content-table sizing-info-table">
<thead>
<tr>
<td data-local="0-0" width="16%">
<span class="col-index-0">size</span>
</td>
<td data-local="1-0" width="16%">
<span class="col-index-1">Cross Shoulder(cm)</span>
</td>
<td data-local="2-0" width="16%">
<span class="col-index-2">Chest Width(cm)</span>
</td>
<td data-local="3-0" width="16%">
<span class="col-index-3">Waist Width(cm)</span>
</td>
<td data-local="4-0" width="16%">
<span class="col-index-4">Sleeve Length(cm)</span>
</td>
<td data-local="5-0" width="16%">
<span class="col-index-5">Skirt length(cm)</span>
</td>
</tr>
</thead>
<tbody>
<tr class="">
<td class="td-index-0" data-local="0-1">S</td>
<td class="td-index-1" data-local="1-1">37</td>
<td class="td-index-2" data-local="2-1">92</td>
<td class="td-index-3" data-local="3-1">94</td>
<td class="td-index-4" data-local="4-1">60</td>
<td class="td-index-5" data-local="5-1">76</td>
</tr>
<tr class="tr-odd">
<td class="td-index-0" data-local="0-2">M</td>
<td class="td-index-1" data-local="1-2">38</td>
<td class="td-index-2" data-local="2-2">96</td>
<td class="td-index-3" data-local="3-2">98</td>
<td class="td-index-4" data-local="4-2">61</td>
<td class="td-index-5" data-local="5-2">78</td>
</tr>
<tr class="">
<td class="td-index-0" data-local="0-3">L</td>
<td class="td-index-1" data-local="1-3">39</td>
<td class="td-index-2" data-local="2-3">100</td>
<td class="td-index-3" data-local="3-3">102</td>
<td class="td-index-4" data-local="4-3">61</td>
<td class="td-index-5" data-local="5-3">79</td>
</tr>
<tr class="tr-odd">
<td class="td-index-0" data-local="0-4">XL</td>
<td class="td-index-1" data-local="1-4">40</td>
<td class="td-index-2" data-local="2-4">104</td>
<td class="td-index-3" data-local="3-4">106</td>
<td class="td-index-4" data-local="4-4">61</td>
<td class="td-index-5" data-local="5-4">81</td>
</tr>
</tbody>
</table>
<p class="size-desc">*These charts are for reference only. Fit may vary depending on the construction, materials and manufacturer.</p>
</div>
When checking the variable in which this div is saved, everything looks OK.
But after Zenno puts this table in an excel cell all that I find there is :

I think excel is trying to execute the script or something like that. If this is the problem, how can I stop excel from doing this?

If you have any other idea about how could I save the entire table in an excel cell, I would highly appreciate if you could enlighten me :-)

Thank you.
 

Aronax

Client
Регистрация
29.01.2015
Сообщения
205
Благодарностей
59
Баллы
28
Actually, I noticed that the entire table is saved in excel but it is spread over multiple cells...
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
That means that there are any separators within variable
 

Aronax

Client
Регистрация
29.01.2015
Сообщения
205
Благодарностей
59
Баллы
28
That's correct. I just noticed that there are some tabs in the original text that Zenno is taking in variable (they cannot be seen here, as they've disapeared when I pasted them on this forum). After removing the tabs, everything is OK, the a/m code is saved in just one cell. Thanks.
 

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)