diff --git a/lib/convert.js b/lib/convert.js index 23cbdc6..295b9d2 100644 --- a/lib/convert.js +++ b/lib/convert.js @@ -83,6 +83,9 @@ function buildUp(jsonObj,opts){ item.stringDate = getTimeDisplay(item.date); item.content = getH(item,'atom:content'); + if (!item.content ){// item was deleted + return false; + } // make anchor tags have the "_top" target item.content = item.content.replace(/\<\s*a\s*/ig,' -1){// item was deleted - return false; - }else{ - return true; - } + return true; });