How to prevent HTML code-changes?
-
Hi,
in one current project, I need pretty much control over the HTML-code, so the content of the page is created in Dreamweaver or just a normal text-editor and then copied into WordPress.
I already deactivated the visual editor for the admin account to prevent code-rewriting and also installed the “Disable wpautop Plugin”.
So at the current state, no code changes happen in the editor within WordPress, but the final code that is sent to the browser still gets modified:
As an examle this code:
<div class=”headline”><span class=”floatLeft”><img src=”/wp-content/images/course_numbers/headlines/w01.gif” width=”58″ height=”25″></span>
<h1 class=”short”>Headline content text</h1>
</div>Is turned into this:
<div class=”headline”><span class=”floatLeft”><img src=”/wp-content/images/course_numbers/headlines/w01.gif” width=”58″ height=”25″></span></p>
<h1 class=”short”>Headline content text</h1>
</p></div>So for some reason, WP writes two closing paragraphs into
the source, what makes no sense in this case.There’s no need for visual editing at this time in this project.
I just need a window for pasting in HTML code and get it sent to the browser without any filtering.Is there any plugin I could use or a way to remove this filtering by commenting out some php-code?
I found this behaviour in WP 2.3.3, 2.5.1 and also in the beta for WP 2.6.
Any ideas how to solve this?
Thanks in advance for you help!Daniel
- The topic ‘How to prevent HTML code-changes?’ is closed to new replies.