Does anyone know of a solution to this problem? I’m having the same issue and it’s driving me up a wall.
This is the way the code should look, and this is what I’m pasting into the edit page field (I’ve disabled the WYSIWYG editor):
<a href="image.jpg" title="Enlarge Image" class="highslide" onclick="return hs.expand(this)">
<img src="image2.jpg" title="Click to enlarge" border="0" />
</a>
And this is what I see when I view source when I test the page:
<a href="image.jpg" title="Enlarge Image" class="highslide" onclick="return hs.expand(this)"><br />
<img src="image2.jpg" title="Click to enlarge" border="0" /><br />
</a>
Why is wordpress adding those two line breaks? This is total BS. Why is wordpress messing with my HTML…especially after disabling the visual editor!