From 44d25658269bc5b3d2a1d7032a12b00a837e3f18 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 4 Oct 2013 15:29:34 +0200 Subject: [PATCH] Rename tool method. --- src/fr/devinsy/util/xml/XMLTools.java | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/fr/devinsy/util/xml/XMLTools.java b/src/fr/devinsy/util/xml/XMLTools.java index c484368..116a9ce 100644 --- a/src/fr/devinsy/util/xml/XMLTools.java +++ b/src/fr/devinsy/util/xml/XMLTools.java @@ -30,13 +30,12 @@ import org.xml.sax.SAXException; */ public class XMLTools { - /** * * @param source * @return */ - public static String escapeNull(final String source) + public static String escapeXmlBlank(final String source) { String result; @@ -242,6 +241,28 @@ public class XMLTools 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 @@ -331,7 +352,7 @@ public class XMLTools * @param source * @return */ - public static String unescapeNull(final String source) + public static String unescapeXmlBlank(final String source) { String result;