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 returnsSome(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