Define plume_common::escape()

This commit is contained in:
Kitaiti Makoto 2022-01-07 05:36:39 +09:00
parent d83a75e3f4
commit c786569171

View File

@ -466,6 +466,10 @@ pub fn md_to_html<'a>(
(buf, mentions.collect(), hashtags.collect()) (buf, mentions.collect(), hashtags.collect())
} }
pub fn escape(string: &str) -> askama_escape::Escaped<askama_escape::Html> {
askama_escape::escape(string, askama_escape::Html)
}
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;