Fix XML parsing error in reports using … for URL shortening
(I can't reproduce it, but … isn't defined in XML.)
This commit is contained in:
parent
57665c1f55
commit
cdf755b98a
|
@ -153,7 +153,7 @@ Zotero.Utilities.prototype.cleanTags = function(x) {
|
||||||
* Certain entities can be inserted manually:
|
* Certain entities can be inserted manually:
|
||||||
*
|
*
|
||||||
* <ZOTEROBREAK/> => <br/>
|
* <ZOTEROBREAK/> => <br/>
|
||||||
* <ZOTEROHELLIP/> => …
|
* <ZOTEROHELLIP/> => …
|
||||||
*/
|
*/
|
||||||
Zotero.Utilities.prototype.htmlSpecialChars = function(str) {
|
Zotero.Utilities.prototype.htmlSpecialChars = function(str) {
|
||||||
if (typeof str != 'string') {
|
if (typeof str != 'string') {
|
||||||
|
@ -178,7 +178,7 @@ Zotero.Utilities.prototype.htmlSpecialChars = function(str) {
|
||||||
case 'BREAK':
|
case 'BREAK':
|
||||||
return '<br/>';
|
return '<br/>';
|
||||||
case 'HELLIP':
|
case 'HELLIP':
|
||||||
return '…';
|
return '…';
|
||||||
default:
|
default:
|
||||||
return p1;
|
return p1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user