Define plume_common::escape()

This commit is contained in:
Kitaiti Makoto 2022-01-07 05:36:39 +09:00
parent d83a75e3f4
commit c786569171
1 changed files with 4 additions and 0 deletions

View File

@ -466,6 +466,10 @@ pub fn md_to_html<'a>(
(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)]
mod tests {
use super::*;