Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def massreplace(*args):
- args = list(args)
- t = args.pop(0)
- for arg in args:
- t = t.replace(arg[0],arg[1])
- return t
- def normalize(t):
- return massreplace(t,["\\u003c","<"],["\\u003e",">"],["\xe2\x80\x9c",'"'],["\xe2\x80\x9d",'"'],["\xe2\x80\x99","'"],["\xe2\x80\x94","..."],["\\n","\n"])
Advertisement
Add Comment
Please, Sign In to add comment