Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 1.9
-
Labels:None
-
Number of attachments :
Description
It would be very useful if site.jsl offered a tag we could use to escape XML text. This is particularly useful when you need to include the contents of another XML file into your xdoc, as described below:
1.The way it is now, the code included inside the <source> tags won't be escaped and hence won't be rendered (as the browser will ignore the unknown XML tags)
<source>
&xmlBeingIncluded;
</source>
2.With the patch I'm including, we would use:
<source>
<escapeXml>
&xmlBeingIncluded;
</escapeXml>
</source>
Besides the patch, I'm providing a simple test case ilustrating the issue.
in the test case provided with the patch.
Proposed patch.