Package org.apache.turbine.util
Class InputFilterUtils
- java.lang.Object
-
- org.apache.turbine.util.InputFilterUtils
-
public abstract class InputFilterUtils extends Object
Some filter methods that have been orphaned in the Screen class.- Version:
- $Id$
- Author:
- Dave Bryson, Henning P. Schmiedehausen
-
-
Constructor Summary
Constructors Constructor Description InputFilterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
prepareText(String s)
This function can/should be used in any screen that will output User entered text.static String
prepareTextMinimum(String s)
This function can/should be used in any screen that will output User entered text.
-
-
-
Constructor Detail
-
InputFilterUtils
public InputFilterUtils()
-
-
Method Detail
-
prepareText
public static String prepareText(String s)
This function can/should be used in any screen that will output User entered text. This will help prevent users from entering html (<SCRIPT>) tags that will get executed by the browser.- Parameters:
s
- The string to prepare.- Returns:
- A string with the input already prepared.
-
prepareTextMinimum
public static String prepareTextMinimum(String s)
This function can/should be used in any screen that will output User entered text. This will help prevent users from entering html (<SCRIPT>) tags that will get executed by the browser.- Parameters:
s
- The string to prepare.- Returns:
- A string with the input already prepared.
-
-