A manuscript with an ampersand in the title fails to export
See manuscripts-frontend#218 for steps to reproduce.
The response has status code 500 and this error message (even though there's no bibliography in the manuscript):
reason: "Error Domain=MPManuscriptCompilerErrorDomain Code=11 "Failing to format manuscript in full because formatting its bibliography failed." UserInfo={NSLocalizedFailureReason=Failed to format bibliography when compiling a version of the manuscript., NSUnderlyingError=0x7f822d3da3d0 {Error Domain=NSXMLParserErrorDomain Code=68 "Line 5: xmlParseEntityRef: no name↵" UserInfo={NSLocalizedDescription=Line 5: xmlParseEntityRef: no name↵}}, NSLocalizedRecoverySuggestion=Formatting the bibliography failed. Please contact support@manuscriptsapp.com, attaching a copy of this manuscript if at all possible, if this error persists., NSLocalizedDescription=Failing to format manuscript in full because formatting its bibliography failed.}"
The ampersand in the title is encoded in the MPManuscript
object as &
, so this may be related to #174