Package com.logicaldoc.util
Class SnippetStripper
java.lang.Object
com.logicaldoc.util.SnippetStripper
Useful class used to filter snippets from lucene, excluding those characters
that invalidate HTML page
- Since:
- 3.0
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
-
Method Details
-
strip
Strips all characters from the input string that may invalidate XML. Particularly useful for search result summaries- Parameters:
snippet
- the string to process- Returns:
- the sanitized string
-