Escape diff strings in graphviz

This commit is contained in:
Amogh Shivaram
2025-08-08 00:20:55 -05:00
parent 6bcdcc73bd
commit 997c6a8821

View File

@@ -800,6 +800,7 @@ where
let re = regex!("\t?\u{001f}([+-])");
let raw_diff = format!("{:#?}", DebugDiffWithAdapter { new, old, ctxt });
let raw_diff = dot::escape_html(&raw_diff);
// Replace newlines in the `Debug` output with `<br/>`
let raw_diff = raw_diff.replace('\n', r#"<br align="left"/>"#);