Rename function so it makes more sense

This commit is contained in:
Jake Howard 2017-09-06 19:50:39 +01:00
parent d4e46c3090
commit bb43ebad70
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ use html::{sciter_start, get_html, destroy_matching, destroy_at, get_head};
use config::Config;
pub fn html_cleanup(config: Config, input: String) -> Result<String, String> {
pub fn head_cleanup(config: Config, input: String) -> Result<String, String> {
let mut root = sciter_start(input);
let mut head = get_head(&mut root);
destroy_at(&mut head, 4); // Sciter doesnt like finding this style tag for some reason

View file

@ -1,8 +1,8 @@
use config::Config;
pub mod html_cleanup;
pub mod head_cleanup;
pub mod strip_blank;
pub const PROCESSORS: [fn(Config, String) -> Result<String, String>; 2] =
[html_cleanup::html_cleanup, strip_blank::strip_blank];
[head_cleanup::head_cleanup, strip_blank::strip_blank];