Oops! I did not pay attention to the escape parameter.
[.].([params...,] (result, event) {
// callback function logic
}, {escape:true});
where namespace is your organization's namespace. This is only required if the class comes from an installed package. controller is the name of your Apex controller. method is the name of the Apex method you're calling. params is the comma-separated list of parameters that your method takes. callbackFunction is the name of the JavaScript function that will handle the response from the controller. callbackFunction receives the status of the method call and the result as parameters. escape specifies whether your Apex method's response should be escaped (by default, true) or not (false).
Oops! I did not pay attention to the escape parameter.
where namespace is your organization's namespace. This is only required if the class comes from an installed package. controller is the name of your Apex controller. method is the name of the Apex method you're calling. params is the comma-separated list of parameters that your method takes. callbackFunction is the name of the JavaScript function that will handle the response from the controller. callbackFunction receives the status of the method call and the result as parameters. escape specifies whether your Apex method's response should be escaped (by default, true) or not (false).