metamuffin's personal website


About 1758152681882 milliseconds have passed since midnight of the january the first in 1970.
------------------------------------------------------

    Ok(format!(
        r#"<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title>metamuffin's blog</title>
	<subtitle>where they post pointless stuff</subtitle>
	<link href="{feed_url}" rel="self" />
	<link href="{index_url}" />
	<id>urn:uuid:3cf2b704-3d94-4f1f-b194-42798ab5b47c</id>
	<updated>{now}</updated>
    <author>
        <name>metamuffin</name>
        <email>metamuffin@disroot.org</email>
    </author>
    {}
</feed>
    "#,
        entries.join("\n")
    ))
}

pub fn horrible_escape_function(text: &str) -> String {
    text.replace("&", "&amp;")
        .replace("<", "&lt;")
        .replace(">", "&gt;")
        .replace("'", "&#8217;")
        .replace("\"", "&quot;")
}