Explorar o código

Fix html parser

Markus-Rost %!s(int64=3) %!d(string=hai) anos
pai
achega
94d01de269
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
 };