1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
.. _example-sanitize-filename:
Sanitize a filename
----------------------------
The :py:func:`.sanitize_filename()` function returns a filename which replaced invalid character(s)
for a filename within the argument.
.. include:: sanitize_filename_code.txt
.. _example-sanitize-file-path:
Sanitize a filepath
----------------------------
The :py:func:`.sanitize_filepath()` function returns a filepath which replaced invalid character(s)
for a filepath within the argument.
.. include:: sanitize_filepath_code.txt
.. _example-sanitize-symbol:
Replace symbols
----------------------------
The :py:func:`.replace_symbol()` function returns a string which replaced symbol(s) within the argument.
.. include:: sanitize_replace_symbol_code.txt
|