CDATA in userdata Tag

I added a userdata tag to my grid like this:











The result of the function mygrid.getUserData("",“errors”) returns an empty string. Without using the CDATA block it works fine.



Is CDATA not supported for the userdata tag?

CDATA can be used here as well, but parser takes first element of userdata tag as value, which in you case is empty space, to resolve issue just illiminate whitespace between userdata tag and CDATA section


<![CDATA[
Here are some error messages with HTML tags]]>