html: sanitize CUSTOM_ID

This commit is contained in:
xfnw 2024-05-24 21:32:05 -04:00
parent 5ca5b90ee0
commit 69d14ce7ad

View File

@ -41,7 +41,7 @@ impl Traverser for Handler {
.next()
.map(|p| p.get("CUSTOM_ID"))
{
cid.to_string()
HtmlEscape(cid).to_string()
} else {
slugify!(&txt)
};