diff --git a/src/main/java/dev/webfx/cli/util/xml/XmlUtil.java b/src/main/java/dev/webfx/cli/util/xml/XmlUtil.java index d07b3d51..64095d41 100644 --- a/src/main/java/dev/webfx/cli/util/xml/XmlUtil.java +++ b/src/main/java/dev/webfx/cli/util/xml/XmlUtil.java @@ -71,10 +71,17 @@ public static String formatHtmlText(Node node) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { XMLWriter writer = new XMLWriter(baos, HTML_FORMAT) { + @Override - protected void writeNodeText(Node node) throws IOException { - super.writeNodeText(node); + protected void writeCDATA(String text) throws IOException { // We remove the CDATA tag when exporting to html + //writer.write(""); + lastOutputNodeType = Node.CDATA_SECTION_NODE; } + }; writer.write(node); } catch (IOException e) { diff --git a/src/main/resources/dev/webfx/cli/version/dev/version.ini b/src/main/resources/dev/webfx/cli/version/dev/version.ini index 955dc312..aebdd7e1 100644 --- a/src/main/resources/dev/webfx/cli/version/dev/version.ini +++ b/src/main/resources/dev/webfx/cli/version/dev/version.ini @@ -1,2 +1,2 @@ version=0.1.0-SNAPSHOT -build.timestamp=2024-07-04 11:49 \ No newline at end of file +build.timestamp=2024-07-05 11:18 \ No newline at end of file