I'm sorry about the confusion surrounding this matter. First of all, it is only necessary to make the substitution I mentioned in my reply to the original poster's message *if* you are adding the scrolling gallery to a web page that is not an eBay listing, such as an eBay store (as he mentioned) or a site that it not affiliated with eBay.
Since you are attempting to add the scrolling gallery to an eBay listing by adding the scrolling gallery HTML manually, you should be able to paste the scrolling gallery code that is available under the “Gallery” tab within your account into the description HTML of the listing without having to make any changes to the code.
Since you are seeing the code itself in the listing in question (as opposed to the gallery), it sounds like you must have pasted the scrolling gallery code into the description editor's “Standard” mode instead of “HTML” mode. If you click the “HTML” tab on the editor on the eBay Revise your Item form and then paste in your scrolling gallery HTML, you should see the gallery once you have saved your changes.
I hope this helps. If you need any further assistance with this, please feel free to contact our Customer Support team by mousing over the “Help” tab on our site and selecting the “File Support Case” option.