< cannot be used in node attribute
ymita opened this issue · comments
Description
< cannot be used in node attribute. If < is supplied, the node tag is generated in an invalid form.
- ignite-ui version: 19.2.25
- browser: any
Steps to reproduce
- Open the attached sample
- Observe the tree
- Inspect the top level node which contains <
Line 41
var xmlDoc = '<OrgChart Name="<All employees">' +
Result
The top level node is not visible. And the generated tag is <all employees<="" a=""></all>
.
Expected result
The top level node is rendered correctly and is visible. And the generated tag should be something like <a href="#" target="_self" class="ui-corner-all"><All employees</a>
.
Attachments
Attach a sample if available, and screenshots, if applicable.
igtree__xml-binding issue.zip
@ymita This is XML specific and not reproducible with JSON binding.
In order for this to work, you can change the format so there is an empty space after the < XML entity replacement - like this " < "
In short, replace:
"<All employees" with
" < All employees" OR even
"< All employees"