ruby on rails - Grape Gem encoding in reponse -


in api response, there html entities. please can make return decoded entities.

{"success_message":"record found","result":[{"category":"health \u0026 safety"}]} 

should be

{"success_message":"record found","result":[{"category":"health & safety"}]} 

i using grape gem api , try

# default_format :json

format :json content_type :json, "application/json;charset=iso-8859-1" 

in api still working.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -