Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removeCommentTag (0.94 sec)

  1. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            assertEquals("", fessXpathTransformer.removeCommentTag(""));
            assertEquals(" ", fessXpathTransformer.removeCommentTag("<!-- - -->"));
            assertEquals("abc", fessXpathTransformer.removeCommentTag("abc"));
            assertEquals("abc ", fessXpathTransformer.removeCommentTag("abc<!-- foo -->"));
            assertEquals("abc 123", fessXpathTransformer.removeCommentTag("abc<!-- fo\no -->123"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 41.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

        }
    
        /**
         * Removes HTML comment tags from the content.
         *
         * @param content the content to process
         * @return the content with comment tags removed
         */
        protected String removeCommentTag(final String content) {
            if (content == null) {
                return StringUtil.EMPTY;
            }
            String value = content;
            int pos = value.indexOf("<!--");
            while (pos >= 0) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 54.4K bytes
    - Viewed (0)
Back to top