--- a/tool/src/utils/html.java
+++ b/tool/src/utils/html.java
@@ -18,6 +18,9 @@
import java.util.ArrayList;
import main.core;
import script.log;
+import utils.vogella.Feed;
+import utils.vogella.FeedMessage;
+import utils.vogella.RSSFeedParser;
import www.RequestOrigin;
import www.WebRequest;
@@ -35,6 +38,32 @@
space = " ",
divider = space + "|" + space;
+
+
+ /**
+ * Retrieves an RSS feed from the Internet
+ * @param wwwLink The URL for the RSS feed
+ * @return an HTML formatted text
+ */
+ public static String getRSS(String wwwLink){
+ String result = "";
+
+ RSSFeedParser parser = new RSSFeedParser(wwwLink);
+ Feed feed = parser.readFeed();
+ //System.out.println(feed);
+ for (FeedMessage msg : feed.getMessages()) {
+
+ result +=
+ html.link(msg.getTitle(), msg.getLink())
+ + html.br
+ + msg.getDescription()
+ + html.br
+ + html.br
+ ;
+ //System.out.println(msg);
+ }
+ return result;
+}
public static String getIcon(String iconName, WebRequest request){