Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removeHighlightTag (0.06 sec)

  1. 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);
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  2. 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);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
Back to top