fn escape_page_data(data: &str) -> String {
    data.to_string()
        // We escape any backslashes to prevent their interfering with JSON delimiters
        .replace('\\', r#"\\"#)
        // We escape any backticks, which would interfere with JS's raw strings system
        .replace('`', r#"\`"#)
        // We escape any interpolations into JS's raw string system
        .replace(r#"${"#, r#"\${"#)
}
Escapes special characters in page data that might interfere with JavaScript
processing.
packages/perseus/src/server/html_shell.rs