But Twig expects either a string with the default escaping strategy or false to disable autoescaping for that parameter, passing true is not supported.
To fix this, the plugin could check if the option is true and convert it to html, which would be my preferred solution:
The options documentation includes this example:
But setting the option to true causes an error:
That's because the option is passed directly as the
autoescape
option to the Twig environment:But Twig expects either a string with the default escaping strategy or
false
to disable autoescaping for that parameter, passingtrue
is not supported.To fix this, the plugin could check if the option is
true
and convert it tohtml
, which would be my preferred solution:If this is not in line with the plugin's intended usage, the documentation at least shouldn't show an invalid option: