How to preserve a “target” attribute on links in overlays? How can I preserve target attribute functionality in Drupal 7 overlays? They appear to always be overwritten with target="_parent".

I have added a link to the help text of a field. I would like to open the link in a new browser tab/window so that the user’s input in the form is not lost when following the link. However, the target attribute appears to be overwritten and the link opens in the same overlay.

Here’s the relevant portion of the help text:


 I agree to the site’s &lt;a href="../../node/5" target="_blank"&gt;Terms of Use&lt;/a&gt;.
In general, all links can be excluded from being processed by the Overlay module. Just add a CSS class named overlay-exclude to the class attribute of the link.

That has also solved my target attribute issue:


 I agree to the site’s &lt;a class="overlay-exclude" href="../../node/5" target="_blank"&gt;Terms of Use&lt;/a&gt;.