def convertStringToIndex(self, content, content_type, instance): """ convertStringToIndex(self, content, content_type, instance) => Utility to convert a string to HTML using the converter stuff. """ # Convert indexer output to plain "optimized" text index = self._convertStringToMime(content, content_type, instance, "text/plain") index = striphtml.strip(index) words = [] for w in string.split(index): stripped = string.lower(string.strip(w)) if not stripped in words: words.append(stripped) words.sort return string.join(words, " ")