rust/tests/rustdoc/crate-version-escape.rs
2023-01-11 09:32:08 +00:00

6 lines
197 B
Rust

// compile-flags: --crate-version=<script>alert("hi")</script> -Z unstable-options
#![crate_name = "foo"]
// @has 'foo/index.html' '//li[@class="version"]' 'Version <script>alert("hi")</script>'