util
Class HTMLFilter
java.lang.Object
util.HTMLFilter
- public final class HTMLFilter
- extends Object
HTML filter utility.
- Version:
- $Revision: 267129 $ $Date: 2004-03-18 08:40:35 -0800 (Thu, 18 Mar 2004) $
- 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 © 2006 Apache Software Foundation. All Rights Reserved.