util
Class HTMLFilter
java.lang.Object
util.HTMLFilter
public final class HTMLFilter
- extends Object
HTML filter utility.
- Author:
- Craig R. McClanahan, Tim Tye
Method Summary |
static String |
filter(String message)
Filter the specified message string for characters that are sensitive
in HTML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLFilter
public HTMLFilter()
filter
public static String filter(String message)
- Filter the specified message string for characters that are sensitive
in HTML. This avoids potential attacks caused by including JavaScript
codes in the request URL that is often reported in error messages.
- Parameters:
message
- The message string to be filtered
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.