diff --git a/src/freeplane.py b/src/freeplane.py index 1ca8eb2..5ea5390 100644 --- a/src/freeplane.py +++ b/src/freeplane.py @@ -1225,15 +1225,22 @@ def plaintext(self, strText, modified=''): @property def hyperlink(self): - return self._node.attrib.get("LINK","") + link = self._node.attrib.get("LINK","") + + # Unescape XML encoding + link = link.replace('&', '&') + + return link @hyperlink.setter def hyperlink(self, strLink, modified=''): self._node.attrib["LINK"] = strLink + # Escape & characters + strLink = strLink.replace('&', '&') - - + self._node.attrib["LINK"] = strLink + # # set creation and modification dates # @@ -2847,4 +2854,3 @@ def getText(self, strRootAttribute, strTitleText, strPortion): # create execute class init with command line environment Mindmap(id='cli') -