I was wondering if there is a way to get rid of the js and html from a json response.
I don't believe it's a very good practice to let some js/html code in an answer that's supposed to be simple.
Can we separate that in a 'raw' key at least, as it's already done with other messages ?
I am expecting statusmsg to be a simple text so I can return it directly to a user.
An example is here, at the bottom of the page, the json response (the same is returned in a production environment):
SuspendAccount < SoftwareDevelopmentKit < TWiki
{'result': [{'status': 1,
'statusmsg': '<script>if (window.clear_ui_status) clear_ui_status();</script>.....}]}
I don't believe it's a very good practice to let some js/html code in an answer that's supposed to be simple.
Can we separate that in a 'raw' key at least, as it's already done with other messages ?
I am expecting statusmsg to be a simple text so I can return it directly to a user.
An example is here, at the bottom of the page, the json response (the same is returned in a production environment):
SuspendAccount < SoftwareDevelopmentKit < TWiki
{'result': [{'status': 1,
'statusmsg': '<script>if (window.clear_ui_status) clear_ui_status();</script>.....}]}