How to escape single quote( ' ) in angularjs ng-click
ng-click="editQuesAnsDetails('${fn:escapeXml(quesAnsList.querysearchBO.query)}','${fn:escapeXml(anslist.query_answer)}',
'${anslist.editUrl}','${anslist.filepath}');"
this my angular controller:
App.controller('AskedQuesAnsController',['$scope','$window','AskedQuesAnsServices',function($scope,$window,AskedQuesAnsServices) {
$scope.quesAnsUpdateCommand={"query":"","answer":"","editUrl":"","deleteUrl":""};
$scope.editQuesAnsDetails = function(query,answer,editUrl,deleteUrl,filepath){
$scope.quesAnsUpdateCommand.query=query;
$scope.quesAnsUpdateCommand.answer=answer;
$scope.quesAnsUpdateCommand.editUrl=editUrl;
$scope.quesAnsUpdateCommand.deleteUrl=deleteUrl;
$scope.quesAnsUpdateCommand.filepath=filepath;
//alert($scope.moduleUpdateCommand.editModule);
}
the above code should work for any special symboles