Content: expose strip
This commit is contained in:
parent
da2c1eacae
commit
0916828a0a
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue