cmd/tools/fast/fast.v: html encode < > in commit messages
parent
d9fdae1de9
commit
5ae3b81337
|
@ -54,11 +54,12 @@ fn main() {
|
||||||
date := time.unix(commit_date.int())
|
date := time.unix(commit_date.int())
|
||||||
mut out := os.create('table.html') ?
|
mut out := os.create('table.html') ?
|
||||||
// Place the new row on top
|
// Place the new row on top
|
||||||
|
html_message := message.replace_each(['<', '<', '>', '>'])
|
||||||
table =
|
table =
|
||||||
'<tr>
|
'<tr>
|
||||||
<td>$date.format()</td>
|
<td>$date.format()</td>
|
||||||
<td><a target=_blank href="https://github.com/vlang/v/commit/$commit">$commit</a></td>
|
<td><a target=_blank href="https://github.com/vlang/v/commit/$commit">$commit</a></td>
|
||||||
<td>$message</td>
|
<td>$html_message</td>
|
||||||
<td>${diff1}ms</td>
|
<td>${diff1}ms</td>
|
||||||
<td>${diff2}ms</td>
|
<td>${diff2}ms</td>
|
||||||
<td>${diff3}ms</td>
|
<td>${diff3}ms</td>
|
||||||
|
|
Loading…
Reference in New Issue