Skip to content

Commit

Permalink
Remove escaping from the API
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff committed Apr 10, 2024
1 parent 2c4c399 commit eb31ea3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
<groupId>org.sakaiproject.search</groupId>
<artifactId>search-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Date;
import java.util.Stack;

import org.apache.commons.lang3.StringEscapeUtils;
import org.sakaiproject.clog.api.ClogManager;
import org.sakaiproject.clog.api.cover.SakaiProxy;
import org.sakaiproject.entity.api.Entity;
Expand Down Expand Up @@ -68,8 +67,7 @@ public void setContent(String text, boolean modified) {
if (!this.content.equals(text) && modified) {
modifiedDate = new Date().getTime();
}

this.content = StringEscapeUtils.unescapeHtml4(text.trim());
this.content = text;
}

public String getContent() {
Expand Down

0 comments on commit eb31ea3

Please sign in to comment.