public class Transformer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[][] |
ESC_LEGEND |
Constructor and Description |
---|
Transformer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
htmlInputSecure(java.lang.String value)
Secures characters like " not to be eliminated by user input cycle.
|
static java.lang.String |
htmlInputSecure(java.lang.String value,
boolean transformAmp)
Secures characters like not to be eliminated by user input cycle.
|
static java.lang.String |
replaceSpecialSigns(java.lang.String text)
Replaces all special signs by their HTML escape codes.
|
static java.lang.String |
replaceSpecialSigns(java.lang.String text,
boolean transformLineFeed)
Replaces all special signs by their HTML escape codes.
|
public static java.lang.String replaceSpecialSigns(java.lang.String text)
text
- the text to be transformedpublic static java.lang.String replaceSpecialSigns(java.lang.String text, boolean transformLineFeed)
text
- the text to be transformedtransformLineFeed
- whether line feed should be transformed to public static java.lang.String htmlInputSecure(java.lang.String value)
value
- the string to be securedpublic static java.lang.String htmlInputSecure(java.lang.String value, boolean transformAmp)
value
- the string to be securedtransformAmp
- whether should be secured, tooCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de