7 lines
207 B
Python
Raw Normal View History

2016-11-27 02:06:38 -06:00
characters_to_replace = ["/", ":", " ", "?", "!", "&", ",", "'", '""']
def sanitize_title (title):
for character in characters_to_replace:
title = title.replace(character, "-")
return title