File size: 402 Bytes
62cfde8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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 ©
output = he.decode(output);
|