JSFiddle - React, Tailwind, and code Playground

by Sahin Deniz

JavaScript

let str = `
<legend>Users search</legend>
<table class="usersTable">
<tr> <td>
<div class="user-data">
<a href="/profile/Test-29703" title="Test" style="width: 65px; height: 65px;"><img src="/img/" title="Test" style="max-width: 65px; max-height:65px;" onerror="imgError(this, &#039;&#039;);" alt="" /></a> <div class="user-nick">
<a href="/profile/Test-29703" class="nick">Test</a> <div class="options">
<a href="/buddies_new/invite/29703" style="display:block; color:blue; margin-top:6px; margin-bottom:6px;">Add friend</a> </div>
</div>
</div>
</td>
<td>
<div class="user-data">
<a href="/profile/test1-175227" title="test1" style="width: 65px; height: 65px;"><img src="/img/" title="test1" style="max-width: 65px; max-height:65px;" onerror="imgError(this, &#039;&#039;);" alt="" /></a> <div class="user-nick">
<a href="/profile/test1-175227" class="nick">test1</a> <div class="options">
<a href="/buddies_new/invite/175227" style="display:block; color:blue; margin-top:6px; margin-bottom:6px;">Add friend</a> </div>
</div>
</div>
</td>
<td>
<div class="user-data">
<a href="/profile/test10-2066012" title="test10" style="width: 65px; height: 65px;"><img src="https://hi-static.z-dn.net/files/d8c/b328db19b6e6cc4f42f99d477334bcc8.jpg" title="test10" style="max-width: 65px; max-height:65px;" onerror="imgError(this, &#039;&#039;);" alt="" /></a> <div class="user-nick">
<a href="/profile/test10-2066012" class="nick">test10</a> <div class="options">
<a href="/buddies_new/invite/2066012" style="display:block; color:blue; margin-top:6px; margin-bottom:6px;">Add friend</a> </div>
</div>
</div>
</td>
<td>
<div class="user-data">
<a href="/profile/test11-259661" title="test11" style="width: 65px; height: 65px;"><img src="/img/" title="test11" style="max-width: 65px; max-height:65px;" onerror="imgError(this, &#039;&#039;);" alt="" /></a> <div class="user-nick">
<a href="/profile/test11-259661" class="nick">test11</a> <div class="options">
<a href="/buddies_new/invite/259661"...