50,6 → 50,14 |
{ |
finalFormatedText.append(" "); |
} |
else if (text.charAt(i) == '<') |
{ |
finalFormatedText.append("<"); |
} |
else if (text.charAt(i) == '>') |
{ |
finalFormatedText.append(">"); |
} |
else |
{ |
finalFormatedText.append(text.charAt(i)); |
59,6 → 67,31 |
return finalFormatedText.toString(); |
} |
|
public static String getEscapeHtmlText(String text) |
{ |
if (text == null || text.trim().length() == 0) |
return ""; |
|
StringBuilder finalFormatedText = new StringBuilder(); |
boolean newLine = true; |
for (int i = 0; i < text.length(); i++) |
{ |
if (text.charAt(i) == '<') |
{ |
finalFormatedText.append("<"); |
} |
else if (text.charAt(i) == '>') |
{ |
finalFormatedText.append(">"); |
} |
else |
{ |
finalFormatedText.append(text.charAt(i)); |
} |
} |
return finalFormatedText.toString(); |
} |
|
public static boolean checkLetters09AZazHiffenUnderScore(String candidate) |
{ |
if (candidate == null) |