parser: Clear invalid entity content This was removed in earlier commits, but we really want to make sure that entity content is syntactically valid.