We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f780ef commit 4077c47Copy full SHA for 4077c47
1 file changed
src/main/java/edu/cmu/oli/content/AppUtils.java
@@ -71,8 +71,7 @@ public static String escapeAmpersand(String data) {
71
Matcher m = Pattern.compile(pattern).matcher(val);
72
List<String> cdataList = new ArrayList<>();
73
while (m.find()){
74
- String s = m.group();
75
- cdataList.add(s);
+ cdataList.add(m.group());
76
}
77
val = val.replaceAll(pattern, "~~!");
78
val = val.replaceAll("&(?!.{2,4};)", "&");
0 commit comments