Hashtable attribution(String str) {
        Hashtable all = new Hashtable();
        while (true) {
            int eq = str.indexOf("=");
            if (str.length() == 0 || eq == -1) {
                return all;
            }

            int id1 = str.indexOf("\'");
            int id2 = str.indexOf("\"");
            int ids = 0; //MC = new Number();
            String id = new String();
            if ((id1 < id2 && id1 != -1) || id2 == -1) {
                ids = id1;
                id = "\'";
            }
            if ((id2 < id1 || id1 == -1) && id2 != -1) {
                ids = id2;
                id = "\"";
            }
            int nextid = str.indexOf(id, ids + 1);
            String val = str.substring(ids + 1, nextid);

            String name = strip(str.substring(0, eq));
            all.put(name, entity(val));
            str = str.substring(nextid + 1, str.length());
        }
        //MC return "";
    }