WordPress 2.1 always format my code
-
Till version 2.1 wordpress has just decided to always reformat my code. I wrote in the editor (not visual) the fellowing code:
<script src=”https://www.spikesoft.ch/wordpress/wp-content/radarpicture/meteo.js” type=”text/javascript”></script>
<script type=”text/javascript”>
window.onload = SetDefaultDates;
</script>
<div class=”animation”>Radar’s picture from
<input type=”text” id=”vonDatum” /> at
<input type=”text” id=”vonZeit” /> to
<input type=”text” id=”bisDatum” /> at
<input type=”text” id=”bisZeit” />
<input name=”_ctl1:derButton” id=”_ctl1_derButton” type=”button” value=”animate” class=”mybutton” onclick=”PrepareAnimation()” />
<span id=”DatumFehler” style=”display:none”>Date is not valid. Valid format ‘dd.mm.yyyy'</span>
<span id=”ZeitFehler” style=”display:none”>Time is not valid. Valid fomrat ‘hh24:mm'</span>
<span id=”keineDaten” style=”display:none”></span>
</div>Explanation about this image can be found here (french only).
Image of <span id=”datum”></span>
<div class=”radarrahmen”>
<div class=”radarbild”>
<img id=”radar” src=”https://img.landimeteo.ch/meteodata/radaranimiert.gif” alt=”” />
<img src=”https://img.landimeteo.ch/meteodata/skala.gif” alt=”Skala” id=”skala”/>
</div></div>
and It’s always displayed as:
<p>
<script src="https://www.spikesoft.ch/wordpress/wp-content/radarpicture/meteo.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload = SetDefaultDates;
</script>
<div class="animation"><p>Radar’s picture from</p><input type="text" id="vonDatum" /> at</p>
<input type="text" id="vonZeit" /> to</p>
<input type="text" id="bisDatum" /> at</p>
<input type="text" id="bisZeit" /> </p>
<input name="_ctl1:derButton" id="_ctl1_derButton" type="button" value="animate" class="mybutton" onclick="PrepareAnimation()" />
<span id="DatumFehler" style="display:none">Date is not valid. Valid format ‘dd.mm.yyyy’</span><span id="ZeitFehler" style="display:none">Time is not valid. Valid fomrat ‘hh24:mm’</span>
<span id="keineDaten" style="display:none"></span>
</div>
<p>Explanation about this image can be found here (french only).
</p>
<p>Image of <span id="datum"></span></p>
<div class="radarrahmen">
<div class="radarbild"><p><img id="radar" src="https://img.landimeteo.ch/meteodata/radaranimiert.gif" alt="" />
<img src="https://img.landimeteo.ch/meteodata/skala.gif" alt="Skala" id="skala"/>
</div>
</div>
<p></p>Even if I hack directly in the database this damned version 2.1 still find sensefull to reinterpret my code, that is add some fancy <p></p>.
Did I miss a new option of version 2.1. How to fix this very annoying behaviour.
Thanks in advance. Jerome
- The topic ‘WordPress 2.1 always format my code’ is closed to new replies.