HTML entities not processed in the authors field (#4887)

This commit is contained in:
Jonas Burian 2021-01-21 18:33:59 +01:00 committed by GitHub
parent 4155ea6445
commit 44989b815a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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());
}
}