I would like to inject HTML/JS in property text.
I’ve tried with this in action “Save”
//Add image to property text
text = “” + changedEvent.text;
changedEvent.text = text;
//Update view through AJAX
var result = new AjaxSaveResponse(action);
result.UpdateField(“text”,HttpUtility.HtmlEncode(text));
It is saved Ok, but when rendering in client through AJAX it shows the unicode string, not render the image. When I reload the controller (F5), the image shows Ok, therefore i guess the issue is in the AJAX message codification.
I’ve tried, both unicode and htmlencode, but not one works.
Also, when I try to delete the event i get a javascript error, no action in controller is called. I think the issue is the same, a codification mistake.
Thanks