Do not return empty string for falsy arguments in Utilities.htmlSpecialChars
This commit is contained in:
parent
de7b56b8a1
commit
ff74e0ff00
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ Zotero.Utilities = {
|
|||
* @return {String}
|
||||
*/
|
||||
"htmlSpecialChars":function(str) {
|
||||
if (str && typeof str != 'string') {
|
||||
if (str !== undefined && typeof str != 'string') {
|
||||
str = str.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue