Benchanything's picture
Add 300 CheckerBench tasks, dataset card, and restoration tools (part 2)
62cfde8 verified
Raw History Blame Contribute Delete
402 Bytes
diff --git a/index.js b/index.js
index 885743f..9b9d96e 100644
--- a/index.js
+++ b/index.js
@@ -123,7 +123,7 @@ Mailgen.prototype.generatePlaintext = function (params) {
}
// Strip all HTML tags from plaintext output
- output = output.replace(/<.+?>/g, '');
+ output = output.replace(/<(.|\n)+?>/g, '');
// Decode HTML entities such as &copy;
output = he.decode(output);