Define plume_common::escape()
This commit is contained in:
parent
d83a75e3f4
commit
c786569171
@ -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::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user