Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for escapeHighlight (0.13 sec)

  1. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

            text = "あああ。いいい" + viewHelper.originalHighlightTagPre + "aaa" + viewHelper.originalHighlightTagPost;
            assertEquals("いいい" + viewHelper.highlightTagPre + "aaa" + viewHelper.highlightTagPost, viewHelper.escapeHighlight(text));
    
            text = "";
            assertEquals("", viewHelper.escapeHighlight(text));
    
            text = "aaa";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                final String text = DocumentUtil.getValue(document, field, String.class);
                if (StringUtil.isNotBlank(text)) {
                    return escapeHighlight(text);
                }
            }
    
            return StringUtil.EMPTY;
        }
    
        protected String escapeHighlight(final String text) {
            final String escaped = LaFunctions.h(text);
            final String value;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 40.2K bytes
    - Viewed (0)
Back to top