Fix reports for notes with " " displaying as HTML markup

Reports are now always served as text/html
This commit is contained in:
Dan Stillman 2012-11-21 19:42:47 -05:00
parent a56422be2c
commit 9665e67042
2 changed files with 7 additions and 20 deletions

View file

@ -479,21 +479,7 @@ function ChromeExtensionHandler() {
default:
var content = Zotero.Report.generateHTMLDetails(items, combineChildItems);
// Serve invalid XML as text/html
//
// This is a temporary workaround until we figure out
// something better.
try {
var xml = new XML(content.replace(/^<\!DOCTYPE [^>]+>\n/, '').trim());
mimeType = 'application/xhtml+xml';
}
catch (e) {
Zotero.debug(e);
mimeType = 'text/html';
}
format = 'html';
mimeType = 'text/html';
}
}
catch (e){