diff --git a/lib/utils.js b/lib/utils.js index f1e736f..f7142f3 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -3,7 +3,7 @@ const entities = require('entities'); const xml2js = require('xml2js'); utils.stripHtml = function(str) { - str = str.replace(/([^\n])<\/?(h|br|p|ul|ol|li|blockquote|section|table|tr|div)(?:.|\n)*?>([^\n])/gm, '$1\n$3') + str = str.replace(/<\/?(h|br|p|ul|ol|li|blockquote|section|table|tr|div)(?:.|\n)*?>/gm, '\n'); str = str.replace(/<(?:.|\n)*?>/gm, ''); return str; }