|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javaWebGen.util.HtmlUtil
public class HtmlUtil
HTML helper methods
Constructor Summary | |
---|---|
HtmlUtil()
|
Method Summary | |
---|---|
static java.lang.String |
htmlErrorMsg(java.lang.Throwable t)
generates HTML to display an error message please note it displays the real stack trace in a HTML comment |
static java.lang.String |
setFormCheck()
|
static java.lang.String |
stripEvilTags(java.lang.String html)
removed Evil tags that can cause security problems. |
static java.lang.String |
stripTags(java.lang.String html)
removed all tags( IE < > >) from input string This should be used on all input fields and anything pass on the URL to prevent cross site scripting attacks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlUtil()
Method Detail |
---|
public static final java.lang.String htmlErrorMsg(java.lang.Throwable t)
t
- error
public static final java.lang.String stripTags(java.lang.String html)
html
-
public static final java.lang.String setFormCheck()
public static final java.lang.String stripEvilTags(java.lang.String html)
html
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |