I have had this problem for a while now and am finally going to post about it. I have searched for a solution here on wordpress.org and via google, but haven't ever been able to find a fix. I post a lot of videos on my blog, and some of them pass along parameters back to the site I've embeded it from. In a specific case I'm dealing with right now, the embed uses a lot of ampersands (&) which WordPress converts to: (without the space)
This causes this embed not to work. I know for a fact this is the problem because when I view the source the ampersands are the only thing changed, and when I create two identical html files and change the ampersands as WordPress does, it breaks it.
The changes don't happen when I "post" it, as the code is still fine in the mySQL database, and when I edit the post. It happens when the post is pulled for viewing.
Now I could take out all of WordPress' special character replacements, but I don't want to open up my visitors to exploit-filled comments.
Is there a way to turn off the special character replacements for my posts and leave it on for comments?