My last blog post took more than an hour to get right over a period of two days. Turns out it is really hard to get DotNetNuke to store and show HTML code just the way you want it.
Don't get me wrong, I love Nuke. But it took a bit of research to figure it out the right way to get my posts to show the right way.
This site gave me the solution to my problem.
http://answers.yahoo.com/question/index?qid=20080725100637AAarPFg
Just in case this post goes away some day, here is the content of the post.
You must deactivate the actual HTML code inside the textarea box so the browser only see pure text:
<textarea name="Image Link" rows="5" cols="40" style="white-space: normal;" onclick="this.focus();this.select()">& lt ;p>& lt ;img style="width: XXpx; height: YYpx; border: 0;" src="Image_URL" alt="Text Description" title="Mouseover Text">& lt ;/p></textarea>
Use & lt ; (without spaces for '<' inside the "box"
Using this tip, all posts containing code need to be created using the source view of the blog editor. Unfortunately, even when the HTML escape characters are used to save the text into the DNN database, that doesn't mean it will be interpreted correctly when pulled out of the database and put back into the editor. So.... the long and the short of it. Create your posts in NotePad, containing the source markup you want, using the escape characters shown above. But save your NotePad documents so you can come back to it later, in the event you find a spelling error, or need to make an update.
Althought a pain, the advantages of Nuke outweight the issues with posting HTML code.