lib/isodoc/function/utils.rb in isodoc-0.9.16 vs lib/isodoc/function/utils.rb in isodoc-0.9.17

- old
+ new

@@ -138,9 +138,10 @@ docxml = docxml. gsub(/\[TERMREF\]\s*/, l10n("[#{@source_lbl}: ")). gsub(/\s*\[\/TERMREF\]\s*/, l10n("]")). gsub(/\s*\[MODIFICATION\]/, l10n(", #{@modified_lbl} — ")) template = liquid(docxml) - template.render(meta.map { |k, v| [k.to_s, empty2nil(v)] }.to_h) + template.render(meta.map { |k, v| [k.to_s, empty2nil(v)] }.to_h). + gsub('<', '<').gsub('>', '>').gsub('&', '&') end end end