factor out <plain-text> from <error-display>