diff options
Diffstat (limited to 'markdown/extensions')
-rw-r--r-- | markdown/extensions/abbr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/abbr.py b/markdown/extensions/abbr.py index 5e46f1d..3f8a443 100644 --- a/markdown/extensions/abbr.py +++ b/markdown/extensions/abbr.py @@ -28,7 +28,7 @@ from __future__ import unicode_literals from . import Extension from ..preprocessors import Preprocessor from ..inlinepatterns import Pattern -from ..util import etree +from ..util import etree, AtomicString import re # Global Vars @@ -88,7 +88,7 @@ class AbbrPattern(Pattern): def handleMatch(self, m): abbr = etree.Element('abbr') - abbr.text = m.group('abbr') + abbr.text = AtomicString(m.group('abbr')) abbr.set('title', self.title) return abbr |