Does Connector Escape characters in a string

I am seeing an issue when trying to use connector to pull data from my database. Users can enter any characters they wish so I need the response to be escaped. In using connector I get XML errors, but when building the XML from .php using htmlentities to escape the string things work.

Can anybody please advise?


Try to update connector’s codebase with the attached one.
Old version may not escape values of attributes, which may lead to the above problem. (57.5 KB)