diff --git a/src/main.rs b/src/main.rs index b0da5ea..f05e64f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -255,7 +255,7 @@ fn compute_results(raw_query: String) -> AnyResult { fn add_data(res: &mut String, pd: &PageData) -> AnyResult<()> { res.push_str( - &HEADER.replacen("{DESCRIPTION}", &pd.description, 2).replacen("{IMG_HOST}", &IMG_HOST, 1).replacen("{TITLE}", &pd.title, 2), + &HEADER.replacen("{DESCRIPTION}", &pd.description.replace('"', r#"\""#), 2).replacen("{IMG_HOST}", &IMG_HOST, 1).replacen("{TITLE}", &pd.title, 2), ); add_searchbox(res, &pd.query)?; res.push_str(&pd.body);