|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfh.global.util.formatting.OutputTextFormatting
public class OutputTextFormatting
| 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 |
|---|
public OutputTextFormatting()
| Method Detail |
|---|
public static java.lang.String generateHTML(java.lang.String input)
input - The input string to format into HTML
public static java.lang.String htmlEncode(java.lang.String input)
input - The String to stip the naught HTML tags out of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||