- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for removeHighlightTag (0.08 seconds)
-
src/main/java/org/codelibs/fess/helper/ViewHelper.java
/** * Removes highlight tags from a string. * * @param str the string containing highlight tags * @return the string with highlight tags removed */ protected String removeHighlightTag(final String str) { return str.replaceAll(originalHighlightTagPre, StringUtil.EMPTY).replaceAll(originalHighlightTagPost, StringUtil.EMPTY); } /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 52.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/ViewHelperTest.java
String text = "highlighted text"; String result = viewHelper.removeHighlightTag(text); assertEquals("highlighted text", result); text = "normal text"; result = viewHelper.removeHighlightTag(text); assertEquals("normal text", result); text = ""; result = viewHelper.removeHighlightTag(text); assertEquals("", result); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 27.8K bytes - Click Count (0)