Export Mapping to XML encodes HTML element start bracket but not the end bracket

1
I have a string attribute as part of one of my entities that is then used in the Export to XML action. The attribute contains HTML, and during the export process, the opening bracket of each HTML element (<) is encoded to ‘&lt;’. The problem is, the ending bracket (>) is not encoded to ‘&gt;’. The consumer of my webservice requires this, but there is no easy way to “force” this to happen. Is this a bug in the Export with Mapping activity?
asked
2 answers
1

Maybe it’s a solution to urlencode your string or add the CDATA tag in the string.

See for some background this thread on stackoverflow: https://stackoverflow.com/questions/1398571/html-inside-xml-should-i-use-cdata-or-encode-the-html

answered
1

I had this problem as well, and raised it a potential bug a few weeks ago. The response from Mendix was that this was expected behaviour, and I needed to handle the encoding myself. 

answered