Advertisement
EditorRUS

Untitled

Jul 25th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. /proc/sanitize(var/t,var/list/repl_chars = null, unicode = 0)
  3. t = html_encode(sanitize_simple(t,repl_chars))
  4.  
  5. var/index = findtext(t, "____255;")
  6. if(unicode)
  7. while(index)
  8. t = copytext(t, 1, index) + "я" + copytext(t, index+8)
  9. index = findtext(t, "____255;")
  10. else
  11. while(index)
  12. t = copytext(t, 1, index) + "ÿ" + copytext(t, index+8)
  13. index = findtext(t, "____255;")
  14.  
  15. return t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement