fh.global.util.formatting
Class OutputTextFormatting

java.lang.Object
  extended by fh.global.util.formatting.OutputTextFormatting

public class OutputTextFormatting
extends java.lang.Object


Constructor Summary
OutputTextFormatting()
           
 
Method Summary
static java.lang.String generateHTML(java.lang.String input)
          This method will use the standard replacement rules to change the input string (which used codes in place of HTML tags like phpbb) and creates valid html from the input, please note that the functionality of this method is limited and not all tags will work correctly
static java.lang.String htmlEncode(java.lang.String input)
          This method takes in a String that has been taken from a user and removes the HTML that could cause problems and replaces is with the correct ampersand (&) codes to stop any nastyness with people trying to do XXS and other such naughtness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputTextFormatting

public OutputTextFormatting()
Method Detail

generateHTML

public static java.lang.String generateHTML(java.lang.String input)
This method will use the standard replacement rules to change the input string (which used codes in place of HTML tags like phpbb) and creates valid html from the input, please note that the functionality of this method is limited and not all tags will work correctly

Parameters:
input - The input string to format into HTML
Returns:
The HTML formatted String

htmlEncode

public static java.lang.String htmlEncode(java.lang.String input)
This method takes in a String that has been taken from a user and removes the HTML that could cause problems and replaces is with the correct ampersand (&) codes to stop any nastyness with people trying to do XXS and other such naughtness

Parameters:
input - The String to stip the naught HTML tags out of
Returns:
The safe formatting String