Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for escapeXml (0.18 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java

        }
    
        protected String getResultDataBody(final String name, final String value) {
            // TODO support other type
            // TODO trim(default)
            return "<field name=\"" + XmlUtil.escapeXml(name) + "\">" + trimSpace(XmlUtil.escapeXml(value != null ? value : "")) + "</field>\n";
        }
    
        protected String getResultDataBody(final String name, final List<String> values) {
            final StringBuilder buf = new StringBuilder();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

        }
    
        protected String getResultDataBody(final String name, final String value) {
            // TODO support other type
            // TODO trim(default)
            return "<field name=\"" + XmlUtil.escapeXml(name) + "\">" + trimSpace(XmlUtil.escapeXml(value != null ? value : "")) + "</field>\n";
        }
    
        protected String getResultDataBody(final String name, final List<String> values) {
            final StringBuilder buf = new StringBuilder();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

    /**
     * @author shinsuke
     *
     */
    public final class XmlUtil {
    
        private static final Logger logger = LoggerFactory.getLogger(XmlUtil.class);
    
        private XmlUtil() {
        }
    
        public static String escapeXml(final String value) {
            return stripInvalidXMLCharacters(//
                    value//
                            .replace("&", "&amp;") //
                            .replace("<", "&lt;")//
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. internal/s3select/sql/evaluate.go

    		err := errLikeNonStrArg
    		return nil, errLikeInvalidInputs(err)
    	}
    
    	escape := runeZero
    	if e.EscapeChar != nil {
    		escapeVal, err2 := e.EscapeChar.evalNode(r, tableAlias)
    		if err2 != nil {
    			return nil, err2
    		}
    
    		inferTypeAsString(escapeVal)
    
    		escapeStr, ok := escapeVal.ToString()
    		if !ok {
    			err := errLikeNonStrArg
    			return nil, errLikeInvalidInputs(err)
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. internal/kms/context.go

    			case '\n':
    				dst.WriteByte('n')
    			case '\r':
    				dst.WriteByte('r')
    			case '\t':
    				dst.WriteByte('t')
    			default:
    				// This encodes bytes < 0x20 except for \t, \n and \r.
    				// If escapeHTML is set, it also escapes <, >, and &
    				// because they can lead to security holes when
    				// user-controlled strings are rendered into JSON
    				// and served to some browsers.
    				dst.WriteString(`u00`)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 6K bytes
    - Viewed (0)
Back to top