Closed pbellis closed 6 years ago
Please help verify fix using the latest CI build found here http://vsixgallery.com/extension/8424E2CB-F5F4-40EA-85B8-260998634ED5/ version 1.2.17
Issue fixed.
Please help verify fix using the latest CI build found here http://vsixgallery.com/extension/8424E2CB-F5F4-40EA-85B8-260998634ED5/ version 1.2.20
Issue fixed and verified.
Installed product versions
Description
If method code has a CDATA tag inside (as a string value perhaps) the VS Plugin will not properly escape the sequence when outputting the file. This is important because Innovator internally wraps all method code with CDATA tags. The result of this bug is a difference in behavior (and even possibly the method will no longer compile) and Innovator will not be able to import the method.
Steps to recreate
Current behavior
CDATA is not properly wrapped.
return inn.newResult("<![CDATA[" + html.ToString() + "]]]]><![CDATA[>");
...
return escapedString.Replace("<![CDATA[","").Replace("]]]]><![CDATA[>", "");
incorrectly becomes:
return inn.newResult("<![CDATA[" + html.ToString() + "]]>");
...
return escapedString.Replace("<![CDATA[","").Replace("]]>", "");
Expected behavior
CDATA is properly wrapped