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 “<”) to avoid the confusion in client side ?
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.