post_excerpt)) { return $post->post_excerpt; } else { return $this->generateExcerpt($post->post_content); } } else { return $post->post_content; } } function filterContent($content) { $content = self::stripShortCodes($content); $content = self::convertEmbeddedContent($content); // convert h4 h5 h6 to h3 $content = preg_replace('/<([\/])?h[456](.*?)>/', '<$1h3$2>', $content); // convert currency signs $content = str_replace( array('$', '€', '£', '¥'), array('$', '€', '£', '¥'), $content ); // strip useless tags $tags_not_being_stripped = array( '', '

', '', '', '', '', '', '

', '

', '

', '', '