I have an application which uses MVC architecture, the price of an entity is returned in a string in HTML format for INR currency as the currency symbol of INR is not in ASCII char set. I have to use this recieved price in the javascript as described below
var someVariableWhichIWantNotToBeInHTML = "${viewModel.price}"
which converts to
var someVariableWhichIWantNotToBeInHTML = "<span class = "currencyINR"></span>1.00"
but it is leading to syntax error as " is not closed in closing span tag.
Can you please suggest me how to use variables in JS that can have such HTML in them coming from the viewmodel?