modilabs/formhub — pull request #1005 by rgaudin (2013-03-04 11:49:45+00:00)
Title: XML <![CDATA[]]> support

Incoming XForms are parsed using minidom (SAX) which means the XML must be valid (obviously).

It means that text values in XML nodes (Form data) *can not contain* reserved characters like -- **& < > ' "** -- (I believe the formers depend on the parser though).

For those characters to be interpreted as content (and accept the XML submission), the text value need to be encapsulated into a node.

It seems that ODK Collect doesn't do it so it means that there is a high risk that submissions are failing when one of the illegal characters are encountered.
**Note**: we should check that and potentially fill a bug at ODK.

Additionally, formhub doesn't support so even if the submission was sent properly, all the fields would be blank.

This is what this P.R fixes: it adds support for in formhub. This is needed.