software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java
// (whilespace after &lt; is intentional)

(whilespace after < is intentional)
( whilespace after < is intentional )
public static String encode_term(String s) {
		if (s == null) return null;
		if (gov.nih.nci.evs.browser.utils.StringUtils.isAlphanumeric(s)) return s;
        StringBuilder buf = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if (c == 60) {
				buf.append("&lt; ");
			} else if (c == 62) {
				buf.append("&gt;");
			} else if (c == 38) {
				buf.append("&amp;");
			} else if (c == 32) {
				buf.append("&#32;");
			} else {
				buf.append(c);
			}
        }
        String t = buf.toString();
        return t;
    }
public static String encode_term ( String s ) { if ( s == null ) return null ; if ( gov . nih . nci . evs . browser . utils . StringUtils . isAlphanumeric ( s ) ) return s ; StringBuilder buf = new StringBuilder ( ) ; for ( int i = 0 ; i < s . length ( ) ; i ++ ) { char c = s . charAt ( i ) ; if ( c == 60 ) { buf . append ( "&lt; " ) ; } else if ( c == 62 ) { buf . append ( "&gt;" ) ; } else if ( c == 38 ) { buf . append ( "&amp;" ) ; } else if ( c == 32 ) { buf . append ( "&#32;" ) ; } else { buf . append ( c ) ; } } String t = buf . toString ( ) ; return t ; }
(whilespace after &lt; is intentional)
( whilespace after &lt ; is intentional )