Markus-Rost před 3 roky
rodič
revize
94d01de269
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      util/functions.js

+ 2 - 2
util/functions.js

@@ -184,7 +184,7 @@ function htmlToPlain(html, includeComments = false) {
 			}
 		}
 	} );
-	parser.write( html );
+	parser.write( String(html) );
 	parser.end();
 	return text;
 };
@@ -370,7 +370,7 @@ function htmlToDiscord(html, pagelink = '', ...escapeArgs) {
 			}
 		}
 	} );
-	parser.write( html );
+	parser.write( String(html) );
 	parser.end();
 	return text;
 };