I guess you can add it to a text element using the html property.
$w('test').html = `<a href="https://example.com" rel="noreferrer noopener">examplelink</a>`;
But you can’t add it to buttons (you can create your own buttons in a custom element and use it there).