I'm utilizing ngInit to transfer variables from PHP to my Angular JS Controller. Sometimes, the passed string may include encoded '"' (Double quotes ")
<div data-ng-controller="UserController" data-ng-init='init({"test":""My Test Input""})'>
</div>
However, when this occurs, I encounter the following error in Angular JS: http://errors.angularjs.org/1.3.13/$parse/syntax?p0=My&p1=is%20unexpected%2C%20expecting%20%5B%7D%5D&p2=16&p3=init(%7B%22test%22%3A%22%22My%20Test%20Input%22%22%7D)&p4=My%20Test%20Input%22%22%7D)
Seeking assistance, please