CSVData =
(
Character,Speech
The multitude,The messiah! Show us the messiah!
Brians mother,Now you listen here! He's not the messiah; he's a very naughty boy! Now go away!
The multitude,Who are you?
Brians mother,I'm his mother; that's who!
The multitude,Behold his mother! Behold his mother!
)
TableData := "
"
Loop Parse, CSVData,`n
{
TableData .= "`n "
Loop Parse, A_LoopField, CSV
TableData .= "| " HTMLEncode(A_LoopField) " | "
TableData .= "
"
}
TableData .= "`n
"
HTMLEncode(str){
static rep := ">""quot"
Loop Parse, rep,;
StringReplace, str, str, % SubStr(A_LoopField, 1, 1), % "&" . SubStr(A_LoopField, 2) . ";", All
return str
}
MsgBox % clipboard := TableData