From 7a5e3b48b7472c17fae5eaf3356464c4da066918 Mon Sep 17 00:00:00 2001 From: Sam Malone Date: Wed, 8 May 2013 05:39:18 +0100 Subject: [PATCH] Escape HTML from the title of the context menu in HeadlinesFragment. For example, some Engadget feed items may have a title that includes an apostrophe that is encoded as ' and is displayed in this form. Html.fromHtml is invoked on the article title. --- src/org/fox/ttrss/HeadlinesFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index 215e1560..f9cc51d8 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -240,7 +240,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, } else { AdapterContextMenuInfo info = (AdapterContextMenuInfo)menuInfo; Article article = getArticleAtPosition(info.position); - menu.setHeaderTitle(article.title); + menu.setHeaderTitle(Html.fromHtml(article.title)); menu.setGroupVisible(R.id.menu_group_single_article, true); }