kd2bwzgen

Untitled

Oct 6th, 2017
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def massreplace(*args):
  2. args = list(args)
  3. t = args.pop(0)
  4. for arg in args:
  5. t = t.replace(arg[0],arg[1])
  6. return t
  7. def normalize(t):
  8. 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