Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 236 for quot (0.26 seconds)

  1. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        // Test quotes are escaped.
        assertThat(xmlAttributeEscaper.escape("\"test\"")).isEqualTo(""test"");
        assertThat(xmlAttributeEscaper.escape("'test'")).isEqualTo("'test'");
        // Test all escapes
        assertThat(xmlAttributeEscaper.escape("a\"b<c>d&e\"f'"))
            .isEqualTo("a&quot;b&lt;c&gt;d&amp;e&quot;f&apos;");
        // Test '\t', '\n' and '\r' are escaped.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        // Test quotes are escaped.
        assertThat(xmlAttributeEscaper.escape("\"test\"")).isEqualTo("&quot;test&quot;");
        assertThat(xmlAttributeEscaper.escape("'test'")).isEqualTo("&apos;test&apos;");
        // Test all escapes
        assertThat(xmlAttributeEscaper.escape("a\"b<c>d&e\"f'"))
            .isEqualTo("a&quot;b&lt;c&gt;d&amp;e&quot;f&apos;");
        // Test '\t', '\n' and '\r' are escaped.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/helper/MarkdownRenderer.java

         */
        private String escapeHtml(final String text) {
            if (text == null) {
                return "";
            }
            return text.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;").replace("'", "&#39;");
        }
    
        /**
         * Checks if the renderer is properly initialized.
         *
         * @return true if initialized
         */
        public boolean isInitialized() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 12 10:32:40 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/job/HtmlIndexExportFormatter.java

            if (text == null || text.isEmpty()) {
                return "";
            }
            return text.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;").replace("'", "&#39;");
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Feb 07 10:31:36 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

     * the queue the shortest time. New elements are inserted at the tail of the queue, and the queue
     * retrieval operations obtain elements at the head of the queue.
     *
     * <p>This is a classic &quot;bounded buffer&quot;, in which a fixed-sized array holds elements
     * inserted by producers and extracted by consumers. Once created, the capacity cannot be increased.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/entity/ChatMessageTest.java

        }
    
        @Test
        public void test_htmlContent_withSpecialCharacters() {
            final ChatMessage message = new ChatMessage();
            final String htmlContent = "<p>Special chars: &amp; &lt; &gt; &quot;</p>";
    
            message.setHtmlContent(htmlContent);
    
            assertEquals(htmlContent, message.getHtmlContent());
        }
    
        @Test
        public void test_htmlContent_withUnicode() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

     * the queue the shortest time. New elements are inserted at the tail of the queue, and the queue
     * retrieval operations obtain elements at the head of the queue.
     *
     * <p>This is a classic &quot;bounded buffer&quot;, in which a fixed-sized array holds elements
     * inserted by producers and extracted by consumers. Once created, the capacity cannot be increased.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/chat/ChatClientTest.java

            assertEquals("a &gt; b", chatClient.testEscapeHtml("a > b"));
        }
    
        @Test
        public void test_escapeHtml_allSpecialChars() {
            assertEquals("&amp;&lt;&gt;&quot;&#39;", chatClient.testEscapeHtml("&<>\"'"));
        }
    
        @Test
        public void test_escapeHtml_scriptTag() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 40.6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/job/IndexExportJobTest.java

            assertTrue(html.contains("<title>Title with &lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;</title>"));
            assertTrue(html.contains("Content with &amp; &lt; &gt; &quot; &#39;"));
            assertFalse(html.contains("<script>"));
        }
    
        @Test
        public void test_buildHtml_excludeFields() {
            final Map<String, Object> source = new LinkedHashMap<>();
    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)
  10. src/main/java/org/codelibs/fess/chat/ChatClient.java

         */
        protected String escapeHtml(final String text) {
            if (text == null) {
                return "";
            }
            return text.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;").replace("'", "&#39;");
        }
    
        /**
         * Gets the maximum number of history messages to retain.
         *
         * @return the maximum number of history messages
         */
    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)
Back to Top