Fix parsing Community/post title with "&" characters

This commit is contained in:
Balazs Toldi 2023-08-13 17:03:25 +02:00
parent acd1aef851
commit 053c9e73b0
No known key found for this signature in database
GPG Key ID: 6C7D440036F99D58
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ public class ParsePost {
}
}
String title = post.getString("name");
String title = post.getString("name").replace("&", "&");
String permalink = post.getString("ap_id");
int score = counts.getInt("score");
int upvotes = counts.getInt("upvotes");

View File

@ -34,7 +34,7 @@ public class ParseSubredditData {
return null;
}
String title = community.getString(JSONUtils.TITLE_KEY);
String title = community.getString(JSONUtils.TITLE_KEY).replace("&", "&");
String bannerImageUrl = "";
if (!community.isNull("banner")) {
bannerImageUrl = community.getString("banner");