Closed Legimet closed 1 week ago
There's already code to convert &
and <
to &
and <
resp., so converting >
to >
is probably the easiest option.
I was able to do it using CDATA, and simplify the code a bit in the process. Will submit a PR shortly.
Also, stay tuned for a few more bug reports.
Luna produces a malformed TNS when run on a Lua script containing "]]>" such as the following:
This is because according to the XML spec,
Alternatively, we could place the Lua script in a CDATA section (I believe this is what the TI software does), not escape any characters, and replace all instances of
]]>
with]]]]><![CDATA[>
. I personally prefer this solution but could make a PR to implement either.