function highlight($post, $words, $content) { $high = new Highlighter($content, $words, true); if ($this->noindex === false) { global $search_spider; $search_spider->has_highlighted_content = true; $content = apply_filters('search_unleashed_content', $content, $post); $high->zoom($this->before, $this->after); $high->mark_words(); } else { $high->zoom($this->before, $this->after); } return $high->reformat($high->get()); }