Implemented tuple serialization
[sandbox] / bad_sanitizers / bad_sanitizers.py
1 import re
2 import urllib.parse
3
4 def sanitizer_1(source):
5     items_were_deleted = True
6
7     while items_were_deleted:
8         start_length = len(source)
9
10         source = ''.join(re.split(r'<\s*split\s*>', source))
11         source = source[:50]
12         source = ''.join(source.split('"'))
13
14         items_were_deleted = len(source) < start_length
15
16         source = urllib.parse.unquote(source)
17
18     return source
19