Commits

Jason Moiron committed 7a638e9

fix a missing import, don't always decode entities since that's stupid

  • Participants
  • Parent commits dcc0437

Comments (0)

Files changed (2)

File argot/markup.py

         return s, map
 
     def render(self):
-        s = utils.decode_html_entities(unicode(self))
+        #s = utils.decode_html_entities(unicode(self))
+        s = unicode(self)
         s = markdown(link_processor.render(s))
         for key,block in self.map.iteritems():
             s = s.replace(key, block.render())

File argot/utils.py

 def decode_html_entities(string):
     """Decodes html entities like '&amp;' to '&' or '&lt;' to '<'."""
     def substitute_entity(match):
+        from htmlentitydefs import name2codepoint as n2cp
         ent = match.group(2)
         if match.group(1) == "#":
             return unichr(int(ent))