Changeset 3575


Ignore:
Timestamp:
2002-11-26T14:04:30+13:00 (21 years ago)
Author:
kjdon
Message:

minor changes

File:
1 edited

Legend:

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

    r3341 r3575  
    11package org.greenstone.gsdl3.util;
    22
     3/** GSHTML - provides some convenience methods for dealing
     4 * with html
     5 */
    36public class GSHTML {
    47
     8    /** make a string html safe */
    59    public static String htmlSafe(String input) {
    610
     
    2327    return(filtered.toString());
    2428    }
    25 
    26         public static String htmlUnsafe(String input) {
     29    /** undo the html safe action */
     30    public static String htmlUnsafe(String input) {
    2731    StringBuffer filtered = new StringBuffer(input.length());
    2832    char c;
     
    4852    }
    4953    return(filtered.toString());
    50     }
    51    
    52        
    53     public static String errorPage(String error) {
    54     String page = "<html><head><Title>GSDL3 Error!</Title><head>\n"+
     54    }
     55   
     56    /** produce a default error page */
     57    public static String  errorPage(String error) {
     58    String page = "<html><head><Title>GSDL3 Error!</Title></head>\n"+
    5559        "<body><h1>Greenstone Error!</h1>"+
    56         "<p>"+error+"</body></html>";
     60        "<p/>"+error+"</body></html>";
    5761    return page;
    5862    }
Note: See TracChangeset for help on using the changeset viewer.