My guess is, and it is only a guess because I can't see it, is that you need to paste the code into notepad and then copy and paste it into your page in HTML view.When you copy code from an HTML page, your clipboard picks up on the code that put it on that page, then when you pasted it, it showed up just like you copied it.
Always. Always. Copy from source, paste that into a plain text editor such as notepad, then copy it from notepad and paste into the HTML view of your page.