Skip to content

Silly question: Sanitize vs Validate. What is the difference ? #32

Answered by thombashi
a3an-de asked this question in Q&A
Discussion options

You must be logged in to vote

In the pathvalidate package, sanitize means that remove/replace invalid characters from a value to make a valid filename/filepath for a specific platform.
validate means checking whether invalid characters are included in the value. And this has not changed the original value.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thombashi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants