This only occurs when editing the website in Google Chrome and does not happen in Firefox or Internet Explorer. This is due to a bug in Google Chrome. Even though this behavior happens when editing the site, the code is still rendered correctly by the browser when viewing the page.