1. Blue
  2. django-spotnet

Commits

Blue  committed 4e4fe6a

Invalid xml characters are now always removed.

  • Participants
  • Parent commits d1ae5b1
  • Branches default

Comments (0)

Files changed (1)

File spotnet/post.py

View file
                     wrapped = [
                         xml_string[:open_tag_end],
                         cdata_open,
-                        remove_invalid_chars(content),
+                        content,
                         cdata_close,
                         xml_string[close_tag_start:],
                     ]
     # xml parser
 
     def parse_xml_content(self, xml_string):
+        xml_string = remove_invalid_chars(xml_string)
         try:
             xml = parseString(xml_string)
         except Exception as e: