double quotes for html attribute values
This commit is contained in:
parent
46ffbeaa6e
commit
95adb78666
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ fn handle_directory<'a, 'b>(
|
||||||
|
|
||||||
let size = meta.len();
|
let size = meta.len();
|
||||||
if meta.file_type().is_dir() {
|
if meta.file_type().is_dir() {
|
||||||
s.push_str(&format!("<tr><td><a href='{file_url}/'>{file_name}/</a> <small><a href='{file_url}.tar'>(tar)</a></small></td></tr>\n", file_name=file_name, file_url=file_url));
|
s.push_str(&format!("<tr><td><a href=\"{file_url}/\">{file_name}/</a> <small><a href=\"{file_url}.tar\">(tar)</a></small></td></tr>\n", file_name=file_name, file_url=file_url));
|
||||||
} else {
|
} else {
|
||||||
s.push_str(&format!("<tr><td><a href='{file_url}'>{file_name}</a> (size: {size})</td></tr>\n", file_name=file_name, file_url=file_url, size=size));
|
s.push_str(&format!("<tr><td><a href=\"{file_url}\">{file_name}</a> (size: {size})</td></tr>\n", file_name=file_name, file_url=file_url, size=size));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s.push_str("</table><hr></body></html>");
|
s.push_str("</table><hr></body></html>");
|
||||||
|
|
Loading…
Add table
Reference in a new issue