The Birdfont Source Code
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
Fix ' in xml encoder
--- a/libbirdxml/Xml.vala
+++ b/libbirdxml/Xml.vala
@@ -192,7 +192,7 @@
public static string decode (string s) {
string t;
t = s.replace (""", "\"");
- t = t.replace ("';", "'");
+ t = t.replace ("'", "'");
t = t.replace ("<", "<");
t = t.replace (">", ">");
t = t.replace ("&", "&");
@@ -202,7 +202,7 @@
public static string encode (string s) {
string t;
t = s.replace ("\"", """);
- t = t.replace ("'", "';");
+ t = t.replace ("'", "'");
t = t.replace ("<", "<");
t = t.replace (">", ">");
t = t.replace ("&", "&");