mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Use CDATA for embedded scripts
This commit is contained in:
@@ -100,7 +100,7 @@ public partial class Decompiler
|
|||||||
foreach (var syntaxTree in _context.GetScriptContents(export))
|
foreach (var syntaxTree in _context.GetScriptContents(export))
|
||||||
{
|
{
|
||||||
var scriptText = FormatScript(syntaxTree);
|
var scriptText = FormatScript(syntaxTree);
|
||||||
XElement xScript = new(_nsUix + "Script", scriptText);
|
XElement xScript = new(_nsUix + "Script", new XCData(Environment.NewLine + scriptText + Environment.NewLine));
|
||||||
xScripts.Add(xScript);
|
xScripts.Add(xScript);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user