Changeset 3575
- Timestamp:
- 2002-11-26T14:04:30+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSHTML.java
r3341 r3575 1 1 package org.greenstone.gsdl3.util; 2 2 3 /** GSHTML - provides some convenience methods for dealing 4 * with html 5 */ 3 6 public class GSHTML { 4 7 8 /** make a string html safe */ 5 9 public static String htmlSafe(String input) { 6 10 … … 23 27 return(filtered.toString()); 24 28 } 25 26 29 /** undo the html safe action */ 30 public static String htmlUnsafe(String input) { 27 31 StringBuffer filtered = new StringBuffer(input.length()); 28 32 char c; … … 48 52 } 49 53 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"+ 55 59 "<body><h1>Greenstone Error!</h1>"+ 56 "<p >"+error+"</body></html>";60 "<p/>"+error+"</body></html>"; 57 61 return page; 58 62 }
Note:
See TracChangeset
for help on using the changeset viewer.