• Resolved jak.yuru

    (@jakyuru)


    i use automaticaly update table with auto import extension.
    I noticed that after load data some tags deleting
    for example:
    before data

    <td>
    <center>
     <img class="webmoney" src="/0.gif" title="Webmoney" />
    </center>
    </td>

    after data

    <td>
     <img class="webmoney" src="/0.gif" title="Webmoney" />
    </td>

    example 2
    data before

    <td>
    <div style="display: none">VN:R_U [1.9.22_1171]</div>
    <div class="thumblock "
    ><div id="gdsr_thumb_236_a_up" class="gdt-size-24 gdthumb gdup">
    <div class="gdt-starrating"></div>
    </div>
    <div id="gdsr_thumb_236_a_dw" class="gdt-size-24 gdthumb gddw">
    <div class="gdt-starrating"></div>
    </div>
    <div class="raterclear"></div>
    </div>

    </td>

    data after

    <div>VN:R_U [1.9.22_1171]</div>  //style="display: none" - deleted
    <div class="thumblock ">
    <div id="gdsr_thumb_236_a_up" class="gdt-size-24 gdthumb gdup">
    <div class="gdt-starrating" />  // replaced - <div class="gdt-starrating"></div>
    </div>
    <div id="gdsr_thumb_236_a_dw" class="gdt-size-24 gdthumb gddw">
    <div class="gdt-starrating" />
    </div>
    <div class="raterclear" />
    </div>

    can solve this problem?

    http://wordpress.org/plugins/tablepress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Now, that’s strange. It might be possible that the HTML import (which uses some internal functions from PHP) is too strict here 🙁
    I’ll gladly look into this more deeply. Could you therefore please send me a file that is not working properly via email, so that I can use that for my tests (my email is in the main plugin file “tablepress.php”)? Thanks!

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi again,

    I just played a little bit with your examples and could only recreate parts of the problem, and that’s the empty <div> being rewritten in the self-closing syntax (which is totally fine though). The <center> tag and the style="display: none" were however left in place.

    This might be due to some changes that I made to the HTML importer recently. I therefore updated the current TablePress development version and would like to ask you to try again with that:
    Please download the current dev version from http://tablepress.org/download/tablepress-dev.zip and extract it. Then, replace the “tablepress” plugin folder on your server with that from the ZIP archive and try the import of your HTML files again. Thanks!

    Regards,
    Tobias

    Thread Starter jak.yuru

    (@jakyuru)

    thanks

    i forgot to notice that <center> tag removing only when i use auto update extension. and some other tags removing only when if using autoupdate function.
    I send you email with file i trying to load.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for sending me the file!

    Now, I have tested with that in the latest developer version and can not reproduce the problem. The table is imported fine, and no HTML tags are removed.
    Also, as the Auto Update Extension uses the same import code, it shows the same correct behavior.

    Could you therefore please try this yourself with the current developer version that I mentioned above?

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘some tags deleted when load from html’ is closed to new replies.