Anonymous user
CSV to HTML translation: Difference between revisions
updating js example
(updating js example) |
(updating js example) |
||
Line 1,362:
=={{header|JavaScript}}==
<lang JavaScript>var csv = "Character,Speech\n" +
"The multitude,The messiah! Show us the messiah!\n" +
"Brians mother,<angry>Now you listen here! He's not the messiah; he's a very naughty boy! Now go away!</angry>\n" +
Line 1,392 ⟶ 1,391:
}
console.log('<table><thead>\n' + thead + '</thead><tbody>\n' + rows + '</tbody></table>' );</lang>
<lang
<tr><th>Character</th><th>Speech</th></tr>
</thead><tbody>
Line 1,404 ⟶ 1,401:
<tr><td>Brians mother</td><td>I'm his mother; that's who!</td></tr>
<tr><td>The multitude</td><td>Behold his mother! Behold his mother!</td></tr>
</tbody></table></lang>
=={{header|Lua}}==
|