This commit is contained in:
FliegendeWurst 2021-06-28 18:42:50 +02:00
parent 92f93117dd
commit 0a1c8696b4

View File

@ -14,7 +14,7 @@ use crate::{Result, ILIAS_URL};
/// Prepends a doctype and a base URL to the HTML fragment. /// Prepends a doctype and a base URL to the HTML fragment.
pub fn wrap_html(html_fragment: &str) -> String { pub fn wrap_html(html_fragment: &str) -> String {
format!(r#"<!DOCTYPE html>\n<base href="{}">{}"#, ILIAS_URL, html_fragment) format!("<!DOCTYPE html>\n<base href=\"{}\">{}", ILIAS_URL, html_fragment)
} }
pub async fn write_stream_to_file( pub async fn write_stream_to_file(