diff --git a/scripts/build_standalone.py b/scripts/build_standalone.py
index 1023529..a58a697 100644
--- a/scripts/build_standalone.py
+++ b/scripts/build_standalone.py
@@ -9,6 +9,10 @@
from pathlib import Path
+def json_for_script(data) -> str:
+ return json.dumps(data).replace("", "<\\/")
+
+
def inline_assets(html_content: str, dist_dir: Path, base_path: str = "/") -> str:
"""
Replace external CSS and JS references with inline content.
@@ -64,7 +68,7 @@ def inject_data(html_content: str, data_json_path: Path) -> str:
data = json.load(f)
# Inject data before the main script
- data_script = f''
+ data_script = f''
# Insert before closing