diff options
author | Jonas Burian <jonas.burian@protonmail.com> | 2021-01-21 18:33:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 18:33:59 +0100 |
commit | 44989b815a20d4052949c0c650abb1caf5b16111 (patch) | |
tree | 13cebfb96ced75b0555547fb6c499d58aadfdb4a /core/src/main | |
parent | 4155ea64452038b093d3f90211536439de4c5f9d (diff) | |
download | AntennaPod-44989b815a20d4052949c0c650abb1caf5b16111.zip |
HTML entities not processed in the authors field (#4887)
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java index 1e069a1f0..c57d6a5d1 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java @@ -3,6 +3,8 @@ package de.danoeh.antennapod.core.syndication.namespace; import android.text.TextUtils; import android.util.Log; +import androidx.core.text.HtmlCompat; + import org.xml.sax.Attributes; import de.danoeh.antennapod.core.feed.FeedItem; @@ -62,7 +64,8 @@ public class NSITunes extends Namespace { private void parseAuthor(HandlerState state) { if (state.getFeed() != null) { String author = state.getContentBuf().toString(); - state.getFeed().setAuthor(author); + state.getFeed().setAuthor(HtmlCompat.fromHtml(author, + HtmlCompat.FROM_HTML_MODE_LEGACY).toString()); } } |