diff --git a/content/src/lib.rs b/content/src/lib.rs index b3fe6b7..40211d7 100644 --- a/content/src/lib.rs +++ b/content/src/lib.rs @@ -131,8 +131,12 @@ pub fn bbcode(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() +}