aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/postprocessors.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/postprocessors.py')
-rw-r--r--markdown/postprocessors.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/markdown/postprocessors.py b/markdown/postprocessors.py
index 962728b..672953a 100644
--- a/markdown/postprocessors.py
+++ b/markdown/postprocessors.py
@@ -60,21 +60,10 @@ class RawHtmlPostprocessor(Postprocessor):
text = text.replace("<p>%s</p>" %
(self.markdown.htmlStash.get_placeholder(i)),
html + "\n")
- html = self.unescape(html)
text = text.replace(self.markdown.htmlStash.get_placeholder(i),
html)
return text
- def unescape(self, html):
- """ Unescape any markdown escaped text within inline html. """
- for k, v in self.markdown.treeprocessors['inline'].stashed_nodes.items():
- ph = util.INLINE_PLACEHOLDER % k
- try:
- html = html.replace(ph, '%s' % util.etree.tostring(v))
- except:
- html = html.replace(ph, '\%s' % v)
- return html
-
def escape(self, html):
""" Basic html escaping """
html = html.replace('&', '&amp;')
@@ -82,7 +71,6 @@ class RawHtmlPostprocessor(Postprocessor):
html = html.replace('>', '&gt;')
return html.replace('"', '&quot;')
-
def isblocklevel(self, html):
m = re.match(r'^\<\/?([^ ]+)', html)
if m: