Skip to content

Commit 314f0e2

Browse files
fix(cli): web_dev_server html template serialization (fix #6165) (#6166)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent f7ac2e9 commit 314f0e2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"cli.rs": patch
3+
"cli.js": patch
4+
---
5+
6+
Fixes HTML serialization removing template tags on the dev server.

tooling/cli/src/helpers/web_dev_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async fn handler<T>(req: Request<T>, state: Arc<State>) -> impl IntoResponse {
126126
head.prepend(script_el);
127127
});
128128

129-
f = document.to_string().as_bytes().to_vec();
129+
f = tauri_utils::html::serialize_node(&document);
130130
}
131131

132132
(StatusCode::OK, [(CONTENT_TYPE, mime_type)], f)

0 commit comments

Comments
 (0)