@@ -, +, @@ editor Enable subfield a, add & and press tab three times, then type Ctrl-Shift-L its job and closed itself ‡vDrama" rather than "‡aAbduction & </script>‡vDrama." --- .../prog/en/modules/authorities/blinddetail-biblio-search.tt | 2 ++ 1 file changed, 2 insertions(+) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt @@ -22,6 +22,8 @@ [% IF rancor %] function RancorReplaceField( new_text, ind_1, ind_2 ){ var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField(); + // The new_text is entity-encoded and we want decoded text + new_text = new DOMParser().parseFromString(new_text, 'text/html').body.innerText; cur_field.setText(new_text); [% IF update_ind1 %]cur_field.setIndicator1(ind_1);[% END %] [% IF update_ind2 %]cur_field.setIndicator2(ind_2);[% END %] --