This StackOverflow answer has a solution
In short, use remove_filter('the_content', 'wpautop'); in your functions.php file to disable auto formatting of post content. You can also use the Raw HTML plugin to selectively strip auto-formatting.
This is STILL a problem in 3.1! I have visual editing disabled, and yet all my html comments get wrapped in <p> tags.
Thanks for the quick response…
I commented out line 74 previously, but that only solved that particular notice- The other stuff was still showing up and I didn’t want to go around commenting multiple lines in your plug-in.
Turning debugging off DOES fix the issue in that output is no longer dumping to the screen, and the plugin does function correctly, but as I’m doing a number of things in a dev environment i do need debugging enabled. Perhaps there’s a way to route it to a log file instead…
Strange that this would only be a MAMP thing, as nothing else has given me problems thus far…