• WordPress appears to insert html into my posts that screw up my formatting. For example, I defined a “quote” class which I use to wrap around some text using DIVs. Within the div I use BLOCKQUOTE. The generated HTML on my site inserts unwanted P (paragraph) tags, screwing up the “quote” DIV.
    If there any way to have WordPress post JUST what you type in the Post, not inserting HTMLs as it sees fit?
    Thanks,
    jody

Viewing 7 replies - 1 through 7 (of 7 total)
  • there is this option in the recent nightlies:
    WordPress should correct invalidly nested XHTML automatically
    and similar ones in the old ones…
    search and disable… ??

    Your description of the problem isn’t really useful without a link to the messed up post and the original HTML.

    Yes, you can turn off the autop functionality in 1.0.2 by editing the lines at the end of vars.php. The reason I’d like to see the HTML it messed up is because any time it does something unwanted to HTML code you put in, I consider it a bug and would like to fix it.
    If you want to share the HTML code, please post it to:
    https://wiki.www.ads-software.com/index.php/autop-bugs
    Thanks!

    A quicky fix would be to use
    instead of a blank line. I ran into this once before and found that little trick keeps WP from inserting the p tags.
    TG
    Addendum: If it still doesn’t work, try putting a non-breaking space (and nbsp entity) just before the break tag.

    all tags that do not require a closing tag to be more specific.

    To add to the pedantry party, all tags in xhtml *have* to have a closing tag. ??

    I have a problem also:
    ORIGINAL CODE:

    <div style="color:#666666; border:1px solid #CCCCCC; font-family:Georgia, Times, serif; padding:10px;">
    <form action="mj.php" method="post" enctype="multipart/form-data" name="mj" id="mj">
    <div>
    <input style="background-color:#FFFFFF; border:1px solid #666666; font-size:9px" name="name" type="text" />
    </div>
    <div style="color:#666666; font-size:9px; text-transform:uppercase;">Your name</div>

    <div>
    <input style="background-color:#FFFFFF; border:1px solid #666666; font-size:9px" name="mail" type="text" />
    </div>
    <div style="color:#666666; font-size:9px; text-transform:uppercase;">Your e-mail address</div>

    <div>
    <textarea name="accusation" cols="60" rows="5" style="background-color:#FFFFFF; border:1px solid #666666; font-family:Arial, Helvetica, sans-serif; font-size:11px;">I will sue Mr. Michael Jackson for </textarea>
    </div>
    <div style="color:#666666; font-size:9px; text-transform:uppercase;">I will sue Mr. Michael Jackson for ...</div>
    <p style="text-transform:uppercase; font-size:9px;"><span style="color:#990000; font-weight:bold;">DISCLAIMER</span>
    By hitting the button "File The Accusation" you :
    1. givE property of fallenBoy 3 the right to use, store, file the sent data.
    2. understand property of fallenBoy 3 may USE submitted data AGAINST YOU.
    <input type="submit" name="send" value="File The Accusation" style="background-color:#FFFFFF; font-size:11px; border:1px solid #CCCCCC; font-family:Georgia, Times, serif;" />
    </form>
    </div>

    But after bublishing, there is:

    <div style="color:#666666; border:1px solid #CCCCCC; font-family:Georgia, Times, serif; padding:10px;">
    <form action="mj.php" method="post" enctype="multipart/form-data" name="mj" id="mj">
    <div>
    <input style="background-color:#FFFFFF; border:1px solid #666666; font-size:9px" name="name" type="text" />
    </div>
    <div style="color:#666666; font-size:9px; text-transform:uppercase;">Your name</div>
    <div>
    <input style="background-color:#FFFFFF; border:1px solid #666666; font-size:9px" name="mail" type="text" />
    </div>
    <div style="color:#666666; font-size:9px; text-transform:uppercase;">Your e-mail address</div>
    <div>
    <textarea name="accusation" cols="60" rows="5" style="background-color:#FFFFFF; border:1px solid #666666; font-family:Arial, Helvetica, sans-serif; font-size:11px;">I will sue Mr. Michael Jackson for </textarea>
    </div>
    <div style="color:#666666; font-size:9px; text-transform:uppercase;">I will sue Mr. Michael Jackson for …</div>
    <p style="text-transform:uppercase; font-size:9px;"><span style="color:#990000; font-weight:bold;">DISCLAIMER</span>
    By hitting the button "File The Accusation" you :
    1. givE property of fallenBoy 3 the right to use, store, file the sent data.
    2. understand property of fallenBoy 3 may USE submitted data AGAINST YOU.
    <input type="submit" name="send" value="File The Accusation" style="background-color:#FFFFFF; font-size:11px; border:1px solid #CCCCCC; font-family:Georgia, Times, serif;" />
    </form>
    </div>

    As I understand, Publishing converts
    into . Why?
    And it’s ok, but why it doesnt close the last (before last <input>).
    The automatic fixing of XHTML is turned off, the version of WP is 1.2.1
    ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress inserting unwanted HTML in posts’ is closed to new replies.