For example: convert
<ClientEvent name="beforeExecute">
self.set("parameter",view.id("datagrid")
.get("currentEntity").toJSON());
</ClientEvent>
to
<ClientEvent name="beforeExecute"><![CDATA[
self.set("parameter",view.id("datagrid")
.get("currentEntity").toJSON());
]]></ClientEvent>
You need to install this atom packages first:
language-dorado
Run command:
dorado-helper:convert-ClientEvent
Or with keymap. In atom-text-editor[data-grammar='text dorado view xml']:not([mini]) file, keymap:
ctrl-alt-d