JSFiddle - React, Tailwind, and code Playground

by bohdantheone

HTML

<html>
    <head>
    </head>
    <body>
       <div id="2"></div>
 </body>

    </html>

JavaScript

var s = '<noindex><a href="/search/uCoz/" rel="nofollow" class="eTag">uCoz</a>, <a href="/search/%D0%A1%D0%BA%D1%80%D0%B8%D0%BF%D1%82/" rel="nofollow" class="eTag">Скрипт</a>, <a href="/search/%D0%BA%D0%BB%D0%B0%D0%B2%D0%B8%D1%88/" rel="nofollow" class="eTag">клавиш</a>, <a href="/search/%D1%81%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D1%8B%20ucoz/" rel="nofollow" class="eTag">скрипты ucoz</a>, <a href="/search/%D0%B3%D0%BE%D1%80%D1%8F%D1%87%D0%B8%D1%85/" rel="nofollow" class="eTag">горячих</a></noindex>';

s.replace(/<\/?[^>]+>/gi, '');


document.getElementById('2').innerHTML = s;