Rename tool method.

This commit is contained in:
Christian P. MOMON 2013-10-04 15:29:34 +02:00
parent 433e0b4078
commit 44d2565826

View file

@ -30,13 +30,12 @@ import org.xml.sax.SAXException;
*/ */
public class XMLTools public class XMLTools
{ {
/** /**
* *
* @param source * @param source
* @return * @return
*/ */
public static String escapeNull(final String source) public static String escapeXmlBlank(final String source)
{ {
String result; String result;
@ -242,6 +241,28 @@ public class XMLTools
return (result); return (result);
} }
/**
*
* @param source
* @return
*/
public static String toHTLM5(final String source)
{
String result;
if (StringUtils.isBlank(source))
{
result = "";
}
else
{
result = source.replace(" ", " ");
}
//
return result;
}
/** /**
* *
* @param value * @param value
@ -331,7 +352,7 @@ public class XMLTools
* @param source * @param source
* @return * @return
*/ */
public static String unescapeNull(final String source) public static String unescapeXmlBlank(final String source)
{ {
String result; String result;