WordPress.org

Support

Support » How-To and Troubleshooting » HTML editor corrupts tag on publishing

HTML editor corrupts tag on publishing

  • In the HTML editor window for the post, I enter a quicktag <!–more–>. Then, press “Publish” or “Update” to push the change live.

    <!–more–> immediately changes to & lt;!–more–& gt; (I added spaces here between & and lt/gt to avoid automatic conversion in the post) in the editor window, and the post doesn’t have a correct “more…” link, but rather a <!–more–> text in its body.

    I searched the documentation carefully and there’s no answer on how to fix this issue. The environment was refreshed recently and I assume there are no changes in the_content() or the_excerpt() functions in the WordPress.

    Please help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi
    Forum Moderator

    @esmi

    !–more–> immediately changes to <!–more–> in the editor window

    Can you clarify the difference between those two tags? Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    And why are you using an old version of WordPress?

    It converts < and > to their HTML code. We are using old WordPress because it’s a production environment and management doesn’t want any risk associated with upgrade.

    Changing theme is not an option (see above – production environment, so no sudden movements are tolerated).

    The same version works well in staging.

    The set of active plugins is the same in both cases, but staging has more inactive plugins than production.

    esmi
    Forum Moderator

    @esmi

    Nevertheless, you need to try the troubleshooting steps I suggested above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML editor corrupts tag on publishing’ is closed to new replies.