JSFiddle - React, Tailwind, and code Playground

by Peter Aad

HTML

<doi>121</doi>

JavaScript

$("doi").each(function(){
    var ref = $(this).text();
    $(this).replaceWith( "<strong>doi</strong><a href='http://website/"+ref+"/' target='_blank'>reference</a>" );
});