a5e08f7bcc
I installed the rails_xss plugin, for the main purpose of seeing what will break with Rails 3.0 (where the behaviour of the plugin is the default). I think I've fixed everything, but let me know if you see stuff that is HTML-escaped, which shouldn't be. As a side benefit, we now use Erubis, rather than ERB, to render templates. They tell me it's faster ...
53 lines
1.1 KiB
HTML
53 lines
1.1 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<title>Stock Prices</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<meta http-equiv="Content-Style-Type" content="text/css" />
|
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
<link rel="shortcut icon" href="/images/favicon.ico" />
|
|
<link rel="stylesheet" type="text/css" href="/css/style.css" media="all" />
|
|
<script type="text/javascript" src="/js/util.js"></script>
|
|
<style type="text/css">
|
|
/*<![CDATA[*/
|
|
|
|
body {
|
|
color: #333333;
|
|
line-height: 150%;
|
|
}
|
|
|
|
thead {
|
|
font-weight: bold;
|
|
background-color: #CCCCCC;
|
|
}
|
|
|
|
.odd {
|
|
background-color: #FFCCCC;
|
|
}
|
|
|
|
.even {
|
|
background-color: #CCCCFF;
|
|
}
|
|
|
|
.minus {
|
|
color: #FF0000;
|
|
}
|
|
|
|
/*]]>*/
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Stock Prices</h1>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>#</th><th>symbol</th><th>name</th><th>price</th><th>change</th><th>ratio</th>
|
|
</tr>
|
|
</thead>
|