Content: expose strip

This commit is contained in:
asonix 2021-02-08 21:12:05 -06:00
parent da2c1eacae
commit 0916828a0a

View file

@ -131,8 +131,12 @@ pub fn bbcode<F>(source: &str, mapper: F) -> String
where
for<'a> F: Fn(NodeView<'a>) -> NodeView<'a> + Copy,
{
let stripped = STRIP_CONFIG.clean(source).to_string();
let stripped = strip(source);
let preprocessed = render::preprocessor(&stripped, mapper);
log::debug!("{}", preprocessed);
preprocessed
}
pub fn strip(source: &str) -> String {
STRIP_CONFIG.clean(source).to_string()
}