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: InputFilterUtils.java 1773378 2016-12-09 13:19:59Z tv $
  Author:
    Dave Bryson, Henning P. Schmiedehausen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `InputFilterUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and 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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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.

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.