We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b7a4f4 commit 51e91c8Copy full SHA for 51e91c8
src/util.js
@@ -2,6 +2,7 @@
2
export const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;
3
4
export function encodeEntities(s) {
5
+ if (typeof s !== 'string') s = String(s);
6
let out = '';
7
for (let i=0; i<s.length; i++) {
8
let ch = s[i];
0 commit comments