pathvalidate icon indicating copy to clipboard operation
pathvalidate copied to clipboard

Add `escape` as a means of sanitization

Open thombashi opened this issue 1 year ago • 0 comments

The current sanitization functions replace ineligible characters for file-names/file-paths with the specified string. Add escape (unescape) as an alternative processing option.

Add an argument like invalid_value_handler to sanitize functions, allowing the user to choose between replace (the current behavior) and escape. Arguments like replacement_text may be passed as invalid_value_handler_args argument.

thombashi avatar Feb 22 '25 13:02 thombashi