'use strict';


/**
 * Helper to convert an html to a plain text string
 */


module.exports = function convertHTML2PlainString(html) {
  let text = html.replace(/(<([^>]+)>)/g, "");
  text = text.replace(/\s+/g,' ')
  return text
}

@@ -8,17 +8,16 @@
 rict';%0A%0A
-%0A
 /**%0A * H
@@ -36,20 +36,27 @@
 vert an 
-html
+HTML string
  to a pl
@@ -75,18 +75,16 @@
 ing%0A */%0A
-%0A%0A
 module.e

Update html-to-plain-text.js