Should I HTML encode response of my Web API
I am designing a Web API which returns JSON as the content-type, the
response body could contain characters like ', ", < and >, they are valid
characters in JSON. So, my question is should I do HTML encode for my Web
API response body or should I leave this task to HTML client who is
consuming my Web API?
No comments:
Post a Comment