spice_ev.util.sanitize
- spice_ev.util.sanitize(s, chars='')
Remove special characters from string.
Used to make strings safe for file paths.
- Parameters:
s (string) – input to be sanitized
chars (string) – characters to replace
- Returns:
input without special characters in chars
- Return type:
string