My project is a mixture of AngularJS and ASP.Net MVC.
I am using $http.get
to call my api controller, which returns a string. But in the .success
function, the data is getting returned like so "/"my string/""
(with the extra quotes around it).
Why are those there, and how can I get rid of them?
I need them gone because I am setting the title attribute of an element to the string that is returned, and this makes the tooltip have quotes around it (ugly).
parse the string value using JSON.parse(variable)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With