mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-11 05:35:24 +00:00
Define plume_common::escape()
This commit is contained in:
parent
d83a75e3f4
commit
c786569171
1 changed files with 4 additions and 0 deletions
|
@ -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::*;
|
||||
|
|
Loading…
Reference in a new issue