diff --git a/Lib/sfdLib/parser.py b/Lib/sfdLib/parser.py index 090a2ef..a06e9c3 100644 --- a/Lib/sfdLib/parser.py +++ b/Lib/sfdLib/parser.py @@ -5,6 +5,7 @@ from datetime import datetime from fontTools.misc.fixedTools import otRound +from lxml.etree import CDATA import sfdutf7 SFDReadUTF7 = lambda s, force_valid_xml=True: sfdutf7.decode( @@ -738,7 +739,7 @@ def _parseChar(self, data): pass # XXX elif not self._minimal: if key == "Comment": - glyph.note = SFDReadUTF7(value) + glyph.note = CDATA(SFDReadUTF7(value)) elif key == "Colour": glyph.markColor = _parseColor(int(value, 16))