my html is sanitized
  • Hello, I started to use MarsEdit from 2011/March for my WordPress site (not wordpress.com) and love this very much.
    However recently, the html part of my post are automatically sanitized even though it had worked before. For instance, < and > are erased when I send them remote.
    Would you please advise me how to prevent the sanitizing?
  • Hi nakachon -

    This kind of HTML tag corruption is the tell-tale sign of a well known but unfortunately wide-spread server configuration problem. Your server administrator needs to update the libxml and php libraries on the server:

    http://josephscott.org/archives/2009/03/conclusion-of-libxml2-issues-use-php-529-libxml2-273/

    Once the libraries are fixed on the server the bracket stripping problem should clear right up! In the event that your server administrators are not willing to fix the problem on their servers, you may be able to work around the problem by installing a special WordPress plugin designed to help with the problem:

    http://wordpress.org/extend/plugins/libxml2-fix/

    Daniel
  • Hi Daniel -

    I updated from PHP 5.2.8 to 5.3.6 and the HTML tag corruption is totally solved! Wao!

    Thank you very much!
  • Great to hear!
  • I believe am having the same issue and my host has confirmed that my server is running:

    PHP: 5.2.17
    libxml2: 2.7.8

    when i post, all the line breaks are doubled and the spacing is terrible. any ideas what else this could be?
  • sakuny: it sounds like whatever you are seeing is not exactly the same as the other issue. Are you seeing < and > stripped from the HTML of your post?

    Could it be an interaction with a plugin on your site? If you disable all your WordPress plugins temporarily, does it change the behavior at all?

    Daniel
  • i'm not seeing that.

    what i am getting is the line breaks are ignored and/or improperly rendered.
  • oops, too quick. i'm sending screenshot via email of Marsedit not rendering line breaks.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!