Generic tag color editor

This commit is contained in:
Jindra Pet��k
2014-02-15 12:13:31 +01:00
parent 6186a414b3
commit ac9d0573aa
8 changed files with 237 additions and 4 deletions
+9
View File
@@ -793,4 +793,13 @@ public class Helper {
appendNoHilight(AppStrings.translate("decompilationError.error.description")).
appendNoHilight("\");").newLine();
}
public static String escapeHTML(String text){
String from[] = new String[]{"&", "<", ">", "\"", "'", "/"};
String to[] = new String[]{"&amp;", "&lt;", "&gt;", "&quot;", "&#x27;", "&#x2F;"};
for(int i=0;i<from.length;i++){
text = text.replace(from[i], to[i]);
}
return text;
}
}