Im having an android app that takes info from RSS (in pure html form, including p tags, and a href tags).
Here's the code that creates the alertdialog:
Builder alertDialog=new AlertDialog.Builder(Activity.this);
alertDialog.setMessage(Html.fromHtml(rss.getDesc()));
alertDialog.setNegativeButton("אישור", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
});
alertDialog.show();
Now, as I have already mentioned, the rss.getDesc()
-method brings full html code.
As you can see, I have managed to handle the html, but the hyper links don't work... Here's an example of html: (ignore the language)
<p dir="rtl" align="right">כידוע לכם, עומר וייסבלום זכה בתחרות "המורה של המדינה" ובימים אלו מסייר בבתי ספר בארה"ב במשלחת ישראלית שיצאה במסגרת הזכייה.</p>
<p dir="rtl" align="right"> מצ"ב לינק לכתבה על עומר בעיתון בי"ס תיכון אמריקאי באזור וושינגטון בארה"ב (Walt Whitman High School).</p>
<p><a href="http://www.blich.co.il/node/16346">הצג את ההמשך</a></p>
I would be glad if you can tell me what I am missing.