Make sure the contents of frontmatterContents is escaped.