rendered paste bodyfunction rsnews() {
$html = file_get_contents("http://news.runescape.com/list.ws");
$html = str_replace("\n", "", $html);
preg_match_all("/<td valign=\"top\" style=\"color:black;\">(.*?)<\/td><td valign=\"top\">(.*?)<\/td><td align=\"right\" valign=\"top\" style=\"color:black;\">(.*?)<\/td>/", $html, $matches);
for ($x = 0; $x < count($matches[1]);$x++) {
$return[$x]['category'] = trim(strip_tags(str_replace(" ", "", $matches[1][$x])));
$return[$x]['title'] = trim(strip_tags($matches[2][$x]));
$return[$x]['date'] = trim(strip_tags($matches[3][$x]));
}
return $return;
}