Browse Source

Fix html parser

Markus-Rost 3 years ago
parent
commit
94d01de269
1 changed files with 2 additions and 2 deletions
  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;
 };