Allow External links to Have customized targets

If you use a hyperlink in your notes such as:

<a target="_self" href="url">Name<a>

and then publish that note, the current software converts the _self into a _target in the published page, which makes the output open a new tab when it opens instead of staying within the same tab.

I would like to have it so that Publish recognizes and keeps whatever hyperlink formatting and options you have so that external links are handled better.