I am using the 'import' plugin to work with both json and yaml files.
For json I have used
{{ page.header.imports.ex_config|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_SLASHES'))|e('html') }}
This successfully escapes fields in the json file which contain xml data.
How do I achieve the same when importing a yaml file?