Title: Unexpected HTML Changes
Last modified: March 12, 2020

---

# Unexpected HTML Changes

 *  Resolved [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/)
 * I did a scheduled content update as a test and noticed that when the updated 
   was published, much of my custom HTML was missing or otherwise “cleaned.” I expected
   that my pasted HTML would have been published verbatim. Is there anyway to schedule
   content updates so that the HTML does not get sanitized or otherwise changed 
   from what I entered?
 * Some examples:
    - semi-colons that end inline-styles are removed and spaces between inline style
      definitions are removed: `style="margin-top: 10px;margin-bottom: 5px"`
    - srcset attributes are removed: `srcset="//www.domain.com/media/image.jpg 435w"
      sizes="435px"`
    - some inline style tags (with the white-space attribute) are removed: `style
      ="white-space: nowrap;"`
    - HTML comment tags re-render the less-than and greater-than signs into HTML-
      encoded character, which break the HTML comment: `<!--` is converted to `&
      lt ;!--` (added a space to prevent this post from converting it)
    - invalid HTML is removed (this is probably ok, but I’d rather know about it
      being invalid so it can be remedied, rather than just have it be removed):`
      style="margin-botom: 10px;"`
 * I’m sure there are plenty of other examples of this happening, that did not occur
   in my test.
    -  This topic was modified 6 years, 2 months ago by [brandon.w](https://wordpress.org/support/users/brandonw-1/).
    -  This topic was modified 6 years, 2 months ago by [brandon.w](https://wordpress.org/support/users/brandonw-1/).
    -  This topic was modified 6 years, 2 months ago by [brandon.w](https://wordpress.org/support/users/brandonw-1/).

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

 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12538061)
 * [@brandonw-1](https://wordpress.org/support/users/brandonw-1/) can you let me
   know if adding the following line to your wp-config.php resolves this?
 *     ```
       define('REVISIONARY_NO_UNSLASH', true);
       ```
   
 * This needs to go under other constant definitions, not at the very bottom of 
   the file.
 *  Thread Starter [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12538182)
 * No, this literally added a backslash before every quotation mark in the HTML 
   content, rendering all of my code useless…lol.
 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12538188)
 * Okay, thanks for checking. That was just a first pass; I’ll try to make time 
   to dig into it further before the end of the week.
 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12538198)
 * [@brandonw-1](https://wordpress.org/support/users/brandonw-1/) Are you running
   a page builder or front end editing plugin?
 *  Thread Starter [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12538200)
 * Much appreciated!
 *  Thread Starter [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12538227)
 * Probably the only one similar would be TinyMCE Advanced, with the “Replace the
   Block Editor with the Classic Editor” option enabled.
 * I looked at my functions.php file (it’s been awhile, honestly) and about the 
   only other thing that may play into this is the following (which is probably 
   outdated and irrelevant by now):
 *     ```
       remove_filter( 'the_editor_content', 'wpautop' );
       remove_filter( 'the_editor_content', 'wptexturize');
       remove_filter( 'the_editor_content', 'convert_chars');
       remove_filter( 'the_content', 'wpautop' );
       remove_filter( 'the_content', 'wptexturize');
       remove_filter( 'the_content', 'convert_chars');
       remove_filter( 'the_excerpt', 'wpautop' );
       remove_filter( 'the_excerpt', 'wptexturize' );
       remove_filter( 'the_excerpt', 'convert_chars' );
       ```
   
 * Nothing else _looks_ like it would cause any conflicts… but I’m no developer…
 *  Thread Starter [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12588369)
 * Hey [@kevinb](https://wordpress.org/support/users/kevinb/) –
 * Just checking in to see if you’ve got this on the roadmap to look into further.
 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12588557)
 * [@brandonw-1](https://wordpress.org/support/users/brandonw-1/) I have to admit,
   this one slipped off my radar. I’m working on some other Revisions development
   today and tomorrow; will swing back to this issue soon.
 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12593277)
 * [@brandonw-1](https://wordpress.org/support/users/brandonw-1/) I haven’t been
   able to recreate these errors. I’ll need either more detail about your site configuration
   or login access to a site that exhibits it. If you would like to pursue the latter,
   send a request through publishpress.com/contact/
 *  Thread Starter [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12603483)
 * HI [@kevinb](https://wordpress.org/support/users/kevinb/) –
 * I sent a request through the publishpress site with login credentials for you.
   I wouldn’t know where to start with what detail to provide about the site configuration,
   so maybe you can have a look around for us?

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

The topic ‘Unexpected HTML Changes’ is closed to new replies.

 * ![](https://ps.w.org/revisionary/assets/icon-256x256.png?rev=3394615)
 * [PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes](https://wordpress.org/plugins/revisionary/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revisionary/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revisionary/)
 * [Active Topics](https://wordpress.org/support/plugin/revisionary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisionary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisionary/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/unexpected-html-changes/#post-12603483)
 * Status: resolved