We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 724e4db commit cd337b0Copy full SHA for cd337b0
app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java
@@ -1300,7 +1300,12 @@ private String prettyCaption(Media media) {
1300
}
1301
1302
private String prettyDescription(Media media) {
1303
- final String description = chooseDescription(media);
+ String description = chooseDescription(media);
1304
+ if (!description.isEmpty()) {
1305
+ // Remove img tag that sometimes appears as a blue square in the app,
1306
+ // see https://github.com/commons-app/apps-android-commons/issues/4345
1307
+ description = description.replaceAll("[<](/)?img[^>]*[>]", "");
1308
+ }
1309
return description.isEmpty() ? getString(R.string.detail_description_empty)
1310
: description;
1311
0 commit comments