文字列を次のようなテーブルに変換できます。
// Remove the final ; if one exists:
if (tableString.substring(tableString.length - 1) == ';') {
tableString = tableString.substring(0, tableString.length - 1);
}
var tableHtml =
"<table><tr><td>" +
tableString // where table string is something like 'Color=Red;Size=28;Price=45$'
.replace(";", "</tr><tr>")
.replace("=", "</td><td>") +
"</td></tr>";
...そしてテーブルを次のような文字列に変換します(JQueryを使用):
var tableString =
$("table tr").each(function() {
return $(this).children("td").text().join("=");
})
.join(";");