I am creating a RESTful JSON API to access data from our website where the content is in German.
A handful of the fields will return formatted HTML while most are single lines of text although they are highly like to include special characters.
To make it easy to use I wanted consistency throughout. As the text in the HTML fields would not be easy to encode after they have the data my first thought was to encode all fields (they can always be un-encoded later int he other fields).
Is this the best approach or should I suffix all the HTML fields e.g. description_html to imply they are already encoded or try something else?
The plan is let people use the API however they want although initially to let our partners use our data on their website.