diff --git a/web/src/page/debug.rs b/web/src/page/debug.rs index 2a783692..7a284674 100644 --- a/web/src/page/debug.rs +++ b/web/src/page/debug.rs @@ -142,8 +142,12 @@ fn DocumentNode(obj: serde_json::Value, #[prop(optional)] depth: usize) -> impl {s} }.into_view() } else { + let pretty_string = s + .replace("
", "
\n") + .replace("
", "
\n") + .replace('\n', &newline_replace); view! { - "\""{s.replace("
", "
\n").replace('\n', &newline_replace)}
"\"" + "\""{pretty_string}"\"" }.into_view() } },