Crate untrack

Source
Expand description

This crate is intended to remove tracking tokens from URLs contained in any text input. The crate can either substitute the URLs in place or return a Vec of cleaned urls to a given text input.

Functionsยง

clean_urls_and_get_removed_part
Same as clean_urls_from_any_text, but returns Tuples of the sanitized URL and the part that was removed
clean_urls_from_any_text
Takes any String as input, parses URLs, returns either None if no tracking tokens were found. Otherwise returns Some(Vec<String>) of all sanitized URLs
clone_and_sanitize_text
Sanitizes the input and returns Some<String> if any changes were made
replace_urls_in_place
Parses any (mutable) String and sanitizes URLs containing tracking tokens in place