[ 'name' => 'Type', 'type' => 'list', 'values' => [ 'News' => 'N', 'Reviews' => 'R', 'Tutorials' => 'T', 'Forum' => 'F' ] ] ]]; private function buildItem($uri, $title, $author, $timestamp, $thumbnail, $content) { $item = []; $item['uri'] = $uri; $item['title'] = $title; $item['author'] = $author; $item['timestamp'] = $timestamp; $item['content'] = $content; if (!empty($thumbnail)) { $item['enclosures'] = [$thumbnail]; } return $item; } private function decodeHtmlEntities($text) { $text = html_entity_decode($text); $convmap = [0x0, 0x2FFFF, 0, 0xFFFF]; return trim(mb_decode_numericentity($text, $convmap, 'UTF-8')); } private function cleanupPostContent($content, $site_url) { $content = defaultLinkTo($content, self::URI); $content = stripWithDelimiters($content, ''); $content = stripWithDelimiters($content, ''); $content = stripRecursiveHTMLSection($content, 'div', '