/** * _getTagsToStrip * * @return array */ private function _getTagsToStrip() { $s = self::$_params->get('strip_list'); $w = ''; if (strpos($s, '+') === 0) { $s = FeedTextHelper::str_replace_first('+', '', $s); $w = '+'; } $ts = TextUtil::listToArray($s); $ht = array(); foreach ($ts as $k => $t) { if (JString::strpos($t, '=')) { $ht[] = $t; unset($ts[$k]); } } list($tags, $hook_tag) = array($w . implode(',', $ts), $w . implode(',', $ht)); if ($tags) { if (strpos($tags, '+') !== false) { $tags = str_replace('+', '', $tags); } else { $tags = str_replace(' ', '', $tags); $tags = '*-' . str_replace(',', ' -', $tags); } } self::$_tags = $tags; self::$_hook_tag = $hook_tag; return array($tags, $hook_tag); }