Skip to content

Commit

Permalink
Add HTML unescaping
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0gramista committed Apr 12, 2018
1 parent 0085bae commit b332183
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.poprosturonin.sites.SingleMemeScrapper;
import com.poprosturonin.utils.ParsingUtils;
import com.poprosturonin.utils.URLUtils;
import org.apache.commons.lang3.StringEscapeUtils;
import org.json.JSONArray;
import org.json.JSONObject;
import org.jsoup.nodes.Document;
Expand Down Expand Up @@ -148,7 +149,7 @@ private List<Comment> getComments(String id) {
JSONObject commentData = commentsData.getJSONObject(i);

// Parse comment
String content = commentData.getString("comment");
String content = StringEscapeUtils.unescapeHtml4(commentData.getString("comment"));
Author author;
if (commentData.isNull("user")) {
author = new Author("Anonimowy", "");
Expand Down

0 comments on commit b332183

Please sign in to comment.