Ensure content is properly encoded when rendered in the edit form
While analyzing #409 I noticed that I could repair the HTML by simply clicking save. This is odd / bad - clicking save shouldn't actually modify the content. We need to ensure that content is properly encoded when rendered in the edit form.