HTML in page-editor is changed on site (1 post)

  1. nbrummerstedt
    Posted 3 years ago #


    I'm not using the visual editor but the HTML.
    However, it seems like WordPress, when showing the page to a visitor, does not use my (perfect) HTML, but sort of sanitizes it (read: destroys it, adds empty p-tags, so on...)

    The code I'm working with:

    <a href="niels"><div class="c3">
    <p class="job-title">Graphics-guy</p>

    ... and it turns into

    <a href="niels">
    <div class="c3">
    <p class="job-title">Graphics-guy</p>
    </a><p><a href="niels"></a></p>

    Is there any way I can disable the change of my code, so WordPress is actually outputting the code I typed?

Topic Closed

This topic has been closed to new replies.

About this Topic