summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-09-17 08:45:21 (EDT)
committerStephan Born2013-09-17 08:45:21 (EDT)
commit372a7abcc0aef24680efd7829b9833c1c872e642 (patch)
treea05c368dbe7a605ba4c701459f78d24e38dff971
parent4379232f54ab27a4ada15fec01411daad9248c60 (diff)
downloadorg.eclipse.stardust.ui.web-372a7abcc0aef24680efd7829b9833c1c872e642.zip
org.eclipse.stardust.ui.web-372a7abcc0aef24680efd7829b9833c1c872e642.tar.gz
org.eclipse.stardust.ui.web-372a7abcc0aef24680efd7829b9833c1c872e642.tar.bz2
Jira-ID: CRNT-30243
Refactored the code for escapeHTML in I18nUtils.getLabel git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@67319 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/I18nUtils.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/I18nUtils.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/I18nUtils.java
index 238eb94..51af0c8 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/I18nUtils.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/I18nUtils.java
@@ -367,13 +367,15 @@ public class I18nUtils
}
try
{
- // Used StringEscapeUtils.escapeHtml to escape special characters in Java.
- // Ex. <,> with &lt; &gt;
- label = StringEscapeUtils.escapeHtml(Localizer.getString(key));
+
+ label = Localizer.getString(key);
if (null == label && isComputedCaseDataPath(element))
{
label = findMatchingCaseDataPathLabel((DataPath) element, mode);
}
+ // Used StringEscapeUtils.escapeHtml to escape special characters in Java.
+ // Ex. <,> with &lt; &gt;
+ label = StringEscapeUtils.escapeHtml(label);
}
catch (Exception e)
{