Advertisement
Guest User

h31

a guest
Jul 24th, 2009
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. diff -ur Twisted-8.2.0.orig/twisted/words/xish/domish.py Twisted-8.2.0/twisted/words/xish/domish.py
  2. --- Twisted-8.2.0.orig/twisted/words/xish/domish.py 2008-10-29 23:17:26.000000000 +0300
  3. +++ Twisted-8.2.0/twisted/words/xish/domish.py 2009-07-24 16:50:03.000000000 +0400
  4. @@ -161,12 +161,6 @@
  5. @param isattrib: Triggers escaping of characters necessary for use as
  6. attribute values
  7. """
  8. - text = text.replace("&", "&")
  9. - text = text.replace("<", "&lt;")
  10. - text = text.replace(">", "&gt;")
  11. - if isattrib == 1:
  12. - text = text.replace("'", "&apos;")
  13. - text = text.replace("\"", "&quot;")
  14. return text
  15.  
  16. def unescapeFromXml(text):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement