14 Dec
2012
14 Dec
'12
8:35 p.m.
These expand to Lua long strings, [===[ and ]===] respectively, without checking, so theoretically the same issue will arise iff your string contains ]===]. I consider the likelihood for this to happen to be too low to bother, but if you want to be absolutely on the safe side you can also use \luaescapestring. See the Luatex manual, section 2.3.6.
The luaescapestring will also escape the quotation marks... :-) I will use it, then. I used to develop WEB systems. Very vulnerable to injection attacks. I really like things properly escaped... Cheers, André Caldas.