I am building a web application and i encountered an issue. My server sends a json variable to angularjs like this (ng-init attribute):
<div ng-app="App" ng-controller="MainCtrl" ng-init="init(${var})">
This variable contains quotes so i'd like to escape these quotes and then run the init function. Is there a proper way to do this ?