]> git.lizzy.rs Git - rust.git/commit
rustdoc: HTML escape crate version
authorOliver Middleton <olliemail27@gmail.com>
Sat, 29 Feb 2020 23:39:26 +0000 (23:39 +0000)
committerOliver Middleton <olliemail27@gmail.com>
Sun, 1 Mar 2020 00:15:44 +0000 (00:15 +0000)
commit3c97f8ad12e38fb658a88bf9c0c72446987f2021
tree1540c510c00aa96404f66d0acd19804cc323d260
parent3eeefc21f1a3ed9755c072c83808ed5c087b8c9a
rustdoc: HTML escape crate version

As `--crate-version` accepts arbitrary strings they need to be escaped.
src/librustdoc/html/render.rs
src/test/rustdoc/crate-version-escape.rs [new file with mode: 0644]