Skip to content

Commit 4077c47

Browse files
author
Raphael Gachuhi
committed
updated ampersand escape logic
1 parent 0f780ef commit 4077c47

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/edu/cmu/oli/content/AppUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ public static String escapeAmpersand(String data) {
7171
Matcher m = Pattern.compile(pattern).matcher(val);
7272
List<String> cdataList = new ArrayList<>();
7373
while (m.find()){
74-
String s = m.group();
75-
cdataList.add(s);
74+
cdataList.add(m.group());
7675
}
7776
val = val.replaceAll(pattern, "~~!");
7877
val = val.replaceAll("&(?!.{2,4};)", "&amp;");

0 commit comments

Comments
 (0)