My issue involves an application that receives a response from JSON. The response includes text such as father's
. Strangely, when I attempt to alert the response, it displays as father's
. However, when I print the variable using the same JavaScript code as
alert("<%= p @response["result"][0]["title"]%>")
, I see father's
in the Rails console.
I am seeking assistance in resolving this puzzling discrepancy. Any insights would be greatly appreciated.