Redactor splitting nested  tags I have a little issue with Redactor. Whenever I have a link within a link: 

&lt;a href="#"&gt;main link &lt;a href="#"&gt;link within link&lt;/a&gt; &lt;/a&gt;


Redactor automatically modifies it to this:

&lt;a href="#"&gt;main link&lt;/a&gt; &lt;a href="#"&gt;link within link&lt;/a&gt;


Is there a way to stop this auto-modification?
The template engine (Twig) doesn't do anything like that – my guess is that the links only appear to render like your second example, because you're looking at the markup in your browser's dev tools, and modern browsers (e.g. Chrome) do a pretty good job of rendering invalid HTML.

Take a look at the raw source code (i.e. "View source" in your browser), and I suspect the actual rendered HTML will look exactly like your first example.

In any case, nesting &lt;a&gt; tags is not allowed and a very bad idea – so I'd recommend not doing it all :)