Quotes of the Day

Source Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Quotes of the Day</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" type="text/css" href="http://www.netvibes.com/api/0.3/style.css" />
  <script type="text/javascript" src="http://www.netvibes.com/api/0.3/emulation.js"></script>
</head>
<body>

<?php

require_once('magpierss/rss_fetch.inc');

$url = 'http://www.quotationspage.com/data/qotd.rss';
$rss = fetch_rss($url);

$items = array_slice($rss->items, 0, 4);

echo "<dl>\n";

foreach ( $items as $item ) {
	$title = $item[title];
	$url   = $item[link];
	$desc  = trim(strip_tags($item[description]));
	echo "\t<dd>$desc</dd>\n";
	echo "\t<dt style=\"margin-bottom: 1em;\"> - <a href=\"$url\" style=\"font-weight: bold;\">$title</a></dt>\n";
}

echo "</dl>\n";

?>

</body>
</html>