aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/inlinepatterns.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index 4f45638..6cec968 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -366,9 +366,9 @@ class ReferencePattern(LinkPattern):
def makeTag(self, href, title, text):
el = util.etree.Element('a')
- el.set('href', self.sanitize_url(self.unescape(href)))
+ el.set('href', self.sanitize_url(href))
if title:
- el.set('title', self.unescape(title))
+ el.set('title', title)
el.text = text
return el
@@ -378,9 +378,9 @@ class ImageReferencePattern(ReferencePattern):
""" Match to a stored reference and return img element. """
def makeTag(self, href, title, text):
el = util.etree.Element("img")
- el.set("src", self.sanitize_url(self.unescape(href)))
+ el.set("src", self.sanitize_url(href))
if title:
- el.set("title", self.unescape(title))
+ el.set("title", title)
el.set("alt", text)
return el