Will confd service add escape to the reponse text?

I have defined an operation container, the string value of some leafs which will include the symbol like “<” and “>”. In this case, when confd get the request and send back response, will the confd add escape for the symbol “<” and “>” (so the response will be something like “&lt;”) to avoid the confusion in client side ?

Thanks.

ConfD should encode the response properly, so if you are asking about NETCONF or XML response for a REST/RESTCONF request, then yes, ConfD will encode it. There is no reason to encode it for e.g. JSON-formatted response.

Will confd also encode if there is CDATA section in the value in a NETCONF response. Will the CData section itself get encoded, example does <![CDATA[ become

&lt;![CDATA[ ?