From 599ee88f1bbd314a3672a8cb4d2a65bff2bce191 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 15 Apr 2022 18:54:07 +0100 Subject: [PATCH] Special client rendering: Fix quoting of JSON payload The needs to be in " " (and the JS will evaluate it). Signed-off-by: Ian Jackson --- src/pcrender.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcrender.rs b/src/pcrender.rs index 5315d07b..e84f8166 100644 --- a/src/pcrender.rs +++ b/src/pcrender.rs @@ -209,7 +209,7 @@ impl PieceRenderInstructions { if let Some(special) = &special { let special = serde_json::to_string(&special).map_err(IE::JSONEncode)?; hwrite!(&mut defs, - r##" data-special={}"##, + r##" data-special="{}""##, Html::from_txt(&special))?; } hwrite!(&mut defs, -- 2.30.2