From 8fb9d746f334b3198751fabe21c1531a63849a4d Mon Sep 17 00:00:00 2001 From: Ajay Roopakalu Date: Thu, 14 Mar 2013 20:09:59 -0300 Subject: [PATCH] Fix HTML unescaping in title of ArticleFragment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The title of an article when displayed in the ArticleFragment is HTML escaped, as opposed to being properly un-escaped as in HeadlinesFragment (currently around line 588). This produces strings with """ instead of the quote character, for example.  --- src/org/fox/ttrss/ArticleFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index 1fb75b10..c2763436 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -20,6 +20,7 @@ import android.net.Uri; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; +import android.text.Html; import android.util.TypedValue; import android.view.ContextMenu; import android.view.ContextMenu.ContextMenuInfo; @@ -87,11 +88,11 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl String titleStr; if (m_article.title.length() > 200) - titleStr = m_article.title.substring(0, 200) + "…"; + titleStr = m_article.title.substring(0, 200) + "�"; else titleStr = m_article.title; - title.setText(titleStr); + title.setText(Html.fromHtml(titleStr)); //title.setPaintFlags(title.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG); title.setOnClickListener(new OnClickListener() { @Override