Fix reports for notes with " " displaying as HTML markup
Reports are now always served as text/html
This commit is contained in:
parent
a56422be2c
commit
9665e67042
2 changed files with 7 additions and 20 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue