- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for sanitizeFn (0.06 seconds)
-
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
// Test that custom sessionId is sanitized Crawler.Options options = new Crawler.Options(); options.sessionId = "test-session-123"; // Simulate what process() does - sanitize sessionId if (options.sessionId != null) { options.sessionId = options.sessionId.replaceAll("-", "_"); } // Check that sessionId was sanitized (hyphens replaced with underscores)Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 30.8K bytes - Click Count (0) -
src/main/webapp/js/chat.js
*/ function scrollToBottom() { elements.chatMessages.scrollTop(elements.chatMessages[0].scrollHeight); } /** * Render Markdown text to sanitized HTML. * Policy is aligned with server-side MarkdownRenderer (OWASP sanitizer). */ var markdownDomPurifyInitialized = false; var markdownSanitizeConfig = { ALLOWED_TAGS: ['h1','h2','h3','h4','h5','h6',Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 01:36:02 GMT 2026 - 30.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/job/IndexExportJob.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 10.8K bytes - Click Count (0) -
src/main/webapp/js/purify.min.js
e=e.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Fe||Tt(t),o.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=ft(e.nodeName);if(!Ne[t]||Oe[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof D)n=bt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===J&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Be&&!Ue&&!Pe&&-1===e.indexOf("<"))return le&&We?le.createHTML(e):e...
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 06:21:57 GMT 2026 - 22.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java
return text; } return text.replaceAll("<[^>]+>", ""); } /** * Sanitizes document content by escaping delimiter-like sequences * to prevent boundary spoofing in LLM prompts. * * @param text the text to sanitize * @return the sanitized text with delimiter sequences escaped */ protected String sanitizeDocumentContent(final String text) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 72K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/chat/ChatClient.java
} sb.append(c); } return sb.toString(); } /** * Renders markdown text to sanitized HTML. * * @param markdown the markdown text * @return sanitized HTML */ protected String renderMarkdownToHtml(final String markdown) { if (markdownRenderer == null || !markdownRenderer.isInitialized()) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 56.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/IndexExportJobTest.java
assertTrue(result.toString().endsWith(".html")); } @Test public void test_buildFilePath_colonInFilename() { // Colon is valid in URI path but should be sanitized in filesystem path final Path result = indexExportJob.buildFilePath("/export", "https://example.com/path/file%3Aname.html", new HtmlIndexExportFormatter());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 09:08:38 GMT 2026 - 66.1K bytes - Click Count (0) -
pom.xml
<artifactId>commonmark-ext-gfm-tables</artifactId> <version>0.24.0</version> </dependency> <dependency> <groupId>com.googlecode.owasp-java-html-sanitizer</groupId> <artifactId>owasp-java-html-sanitizer</artifactId> <version>20260101.1</version> </dependency> <!-- test --> <dependency> <groupId>org.junit.jupiter</groupId>
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 07:04:54 GMT 2026 - 49.9K bytes - Click Count (0)