JSFiddle - React, Tailwind, and code Playground

by netsi1964

HTML

<a href="window:www.dr.dk">dr</a> test

JavaScript

jQuery(function () {
    var sPseudoProtocol = 'window:'
    var sNewProtocol = '';
    $('a[href*="' + sPseudoProtocol + '"]').each(function () {
        var $this = $(this);
        var sHref = $this.attr('href').toString();
        sHref = sHref.replace(new RegExp(sPseudoProtocol, 'ig'), sNewProtocol)
        $this.attr({ 'href': sHref, 'target': '_blank' });
    })
})