DC codes in HTML get mangled after switching to rich editor

On the latest theme version, I notice that when I switch to the rich editor on a text element that some of the HTML gets mangled as soon as I activate the editor, before I even make any changes to it.

I have links in the text setup using dynamic content for the permalink as follows:

What starts as:
href="{{ post.permalink({“post”:“871”}) }}">

Becomes:
href="{{ post.permalink({" post="" :="" 871="">

I’ve made a test page and included the details in the private note

There is unfortunately only so much we can do with that and tinymce. I’ve looked into it this before. If you are using dynamic content in an attribute you probably don’t want to use the rich text editor. You can probably try using single quotes in the dynamic content. You can also try the preserve p tags in the preferences. Have a great weekend.