Changeset 13571


Ignore:
Timestamp:
2007-01-11T14:42:49+13:00 (15 years ago)
Author:
kjdon
Message:

htmlUnafe was broken? Quan's changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSHTML.java

    r3941 r13571  
    3737        String entity = input.substring(i, j);
    3838        i=j;
    39         if (entity.equals("amp")) {
     39        if (entity.equals("&amp")) {
    4040            filtered.append('&');
    41         } else if (entity.equals("lt")){
     41        } else if (entity.equals("&lt")){
    4242            filtered.append('<');
    43         } else if (entity.equals("gt")){
     43        } else if (entity.equals("&gt")){
    4444            filtered.append('>');
    45         } else if (entity.equals("quot")) {
     45        } else if (entity.equals("&quot")) {
    4646            filtered.append('"');
    4747        } // else just ignore it.
     
    4949        filtered.append(c);
    5050        }
     51
    5152    }
    5253    return(filtered.toString());
Note: See TracChangeset for help on using the changeset viewer.