7 lines
191 B
Python
Raw Normal View History

characters_to_replace = ["/", ":", " ", "?", "!", "&"]
def sanitize_title (title):
for character in characters_to_replace:
title = title.replace(character, "-")
return title