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);