Back to project page SpreadsheetTest.
The source code is released under:
Apache License
If you think the Android project SpreadsheetTest listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package foo.joeledstrom.spreadsheets; /*from www.j a v a 2s .c om*/ public class Utils { private static String[] unencoded = {"&", "\"", "<", ">", "'"}; private static String[] encoded = {"&", """, "<", ">", "'"}; public static String encodeXML(String result) { for (int i = 0; i < unencoded.length; i++) { result = result.replace(unencoded[i], encoded[i]); } return result; } public static String decodeXML(String result) { for (int i = 0; i < unencoded.length; i++) { result = result.replace(encoded[i], unencoded[i]); } return result; } }