Possible Twig escaping bugs

I’m noticing some strange behavior with Twig that I think must be a bug. It’s hard to get anything to render properly with autoescaping turned on. All I get are error messages about “invalid escaping strategy”.

With autoescape off, and using |e or |e('html') it works, but only when I enter extra spaces inside the curly braces like {{author.display_name|e }}.

Thanks for testing. Yeah we need to set a default autoescaper when the WordPress extension is installed. I’ll get that fixed in beta2.

1 Like

Thanks! :clap:

1 Like