Ill-formed entity should result in text, not parse error.

As reported by Rommel Martinez.