The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix ' in xml encoder

These changes was commited to the Birdfont repository Sun, 17 May 2015 13:58:31 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 17 May 2015 13:58:31 +0000 (15:58 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 17 May 2015 13:58:31 +0000 (15:58 +0200)
commit 2958c278d24940608ec6b98ba0cee6a06d718991
tree 92b81730c3f0b25ed4bf526a04c9b0d891d8f59d
parent 39fca9185e64ac2a8c08d53370402a77cedb4d48
Fix ' in xml encoder

libbirdxml/Xml.vala
--- a/libbirdxml/Xml.vala +++ b/libbirdxml/Xml.vala @@ -192,7 +192,7 @@ public static string decode (string s) { string t; t = s.replace ("&quot;", "\""); - t = t.replace ("&apos;;", "'"); + t = t.replace ("&apos;", "'"); t = t.replace ("&lt;", "<"); t = t.replace ("&gt;", ">"); t = t.replace ("&amp;", "&"); @@ -202,7 +202,7 @@ public static string encode (string s) { string t; t = s.replace ("\"", "&quot;"); - t = t.replace ("'", "&apos;;"); + t = t.replace ("'", "&apos;"); t = t.replace ("<", "&lt;"); t = t.replace (">", "&gt;"); t = t.replace ("&", "&amp;");