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