Skip to content

Commit e1180f5

Browse files
Escape <meta> content attribute value
1 parent ac3e680 commit e1180f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ crate fn render<T: Print, S: Print>(
161161
}
162162
},
163163
title = page.title,
164-
description = page.description,
164+
description = Escape(page.description),
165165
keywords = page.keywords,
166166
favicon = if layout.favicon.is_empty() {
167167
format!(

0 commit comments

Comments
 (0)